Click here to Skip to main content
15,920,896 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questionreg: inheritance Pin
mcnu7-Sep-05 6:11
mcnu7-Sep-05 6:11 
AnswerRe: reg: inheritance Pin
Christian Graus7-Sep-05 13:18
protectorChristian Graus7-Sep-05 13:18 
GeneralRe: reg: inheritance Pin
Cedric Moonen7-Sep-05 21:18
Cedric Moonen7-Sep-05 21:18 
GeneralRe: reg: inheritance Pin
Christian Graus8-Sep-05 12:06
protectorChristian Graus8-Sep-05 12:06 
AnswerRe: reg: inheritance Pin
Cedric Moonen7-Sep-05 21:31
Cedric Moonen7-Sep-05 21:31 
GeneralRe: reg: inheritance Pin
mcnu8-Sep-05 2:22
mcnu8-Sep-05 2:22 
GeneralRe: reg: inheritance Pin
Cedric Moonen8-Sep-05 2:27
Cedric Moonen8-Sep-05 2:27 
GeneralRe: reg: inheritance Pin
Cedric Moonen8-Sep-05 2:38
Cedric Moonen8-Sep-05 2:38 
Geeez, pretty difficult to find this error !

The error is at this line:
class st_Mark_Det:public st_Det<br />
{<br />
   protected:<br />
     float sub1,sub2;<br />
   public:<br />
  //   st_Mark_Det(){}<br />
     st_Mark_Det(float a,float b,float c){rol_no=a;sub1=a;sub2=b;}<br />
     void put_Mark(void){cout<<"\nMarks\n SUBJECT1  "<<sub1<<"\nSUBJECT2  "<<sub2;<br />
};<br />


You forgot the '}':
void put_Mark(void){cout<<"\nMarks\n SUBJECT1 "<<sub1<<"\nSUBJECT2 "<<sub2; }

That's one reason why putting all the code in one single header file is so bad: it's almost impossible to spot the corresponding '}'. Also, you should really use a better way of 'formating' your text. The purpose here is not to have the smallest number of lines but to have a code that is readable
GeneralRe: reg: inheritance Pin
8-Sep-05 2:44
suss8-Sep-05 2:44 
GeneralThanks cedric monen Pin
8-Sep-05 3:28
suss8-Sep-05 3:28 
GeneralRe: Thanks cedric monen Pin
Cedric Moonen8-Sep-05 4:21
Cedric Moonen8-Sep-05 4:21 
Questionstroe windows form as a bitmap file?? Pin
richiemac7-Sep-05 4:38
richiemac7-Sep-05 4:38 
AnswerRe: store windows form as a bitmap file?? Pin
ursus zeta13-Sep-05 12:23
ursus zeta13-Sep-05 12:23 
QuestionHow do I store object files as a library?? Pin
BenPage7-Sep-05 3:20
BenPage7-Sep-05 3:20 
AnswerRe: How do I store object files as a library?? Pin
Cedric Moonen7-Sep-05 23:12
Cedric Moonen7-Sep-05 23:12 
QuestionHow to convert type String* to unsigned char * In vc++.NET(Managed)? Pin
CooperWu5-Sep-05 22:29
CooperWu5-Sep-05 22:29 
AnswerRe: How to convert type String* to unsigned char * In vc++.NET(Managed)? Pin
S. Senthil Kumar6-Sep-05 7:58
S. Senthil Kumar6-Sep-05 7:58 
QuestionRe: How to convert type String* to unsigned char * In vc++.NET(Managed)? Pin
CooperWu6-Sep-05 15:26
CooperWu6-Sep-05 15:26 
QuestionReplacing text? Pin
Lord Kixdemp5-Sep-05 11:57
Lord Kixdemp5-Sep-05 11:57 
AnswerRe: Replacing text? Pin
Christian Graus5-Sep-05 12:15
protectorChristian Graus5-Sep-05 12:15 
AnswerRe: Replacing text? Pin
toxcct5-Sep-05 21:32
toxcct5-Sep-05 21:32 
GeneralRe: Replacing text? Pin
Lord Kixdemp7-Sep-05 11:21
Lord Kixdemp7-Sep-05 11:21 
GeneralRe: Replacing text? Pin
toxcct7-Sep-05 20:30
toxcct7-Sep-05 20:30 
GeneralRe: Replacing text? Pin
Lord Kixdemp8-Sep-05 13:24
Lord Kixdemp8-Sep-05 13:24 
QuestionTrouble with writing dll Pin
Christian Graus5-Sep-05 11:16
protectorChristian Graus5-Sep-05 11:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.