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

Managed C++/CLI

 
QuestionMemory Overlapping Pin
fjlv20057-Sep-05 22:01
fjlv20057-Sep-05 22:01 
AnswerRe: Memory Overlapping Pin
Cedric Moonen7-Sep-05 22:23
Cedric Moonen7-Sep-05 22:23 
Questionfactorial calculation of a number in lakhs(for ex:100000) Pin
Member 21979667-Sep-05 21:42
Member 21979667-Sep-05 21:42 
QuestionClass Design tool Pin
TssPrasad7-Sep-05 18:08
sussTssPrasad7-Sep-05 18:08 
GeneralRe: Class Design tool Pin
toxcct7-Sep-05 20:38
toxcct7-Sep-05 20:38 
GeneralRe: Class Design tool Pin
Shiva Prasad7-Sep-05 20:47
Shiva Prasad7-Sep-05 20:47 
GeneralRe: Class Design tool Pin
toxcct7-Sep-05 20:49
toxcct7-Sep-05 20:49 
Questionreg: inheritance Pin
mcnu7-Sep-05 6:11
mcnu7-Sep-05 6:11 
Hello to all,
i am the beginner of c++ and i wrote some program in Borland C++ 5.0 abt the inheritance this is what i wrote


#include "iostream.h"
#include "conio.h"
class st_Det
{
protected:
int rol_no;
public:
st_Det(){}
st_Det(int a){rol_no=a;}
void put_No(void){ cout<<"\nRoll No :"<<rol_no<<endl;}
};

class st_mark_det:public="" st_det
{
="" protected:
="" float="" sub1,sub2;
="" public:
="" st_mark_det(){}
="" st_mark_det(float="" a,float="" b){sub1="a;sub2=b;}
" void="" put_mark(void){cout<<"\nmarks\n="" subject1="" "<<sub1<<"\nsubject2="" "<<sub2;
};


class="" st_sprt
{
="" score;
="" st_sprt(float="" a){score="a;}
" put_score(void){cout<<"\nscore="" in="" sports\n"<<score<<endl;}
};

class="" result:public="" st_mark_det,public="" total;
public:
="" result(int="" b,float="" c,float="" d):st_det(a),st_mark_det(b,c),st_sprt(d)
="" {total="0;}
" sum(){total="sub1+sub2+score;}
" display="" (void){="" put_no();put_mark();put_score();cout<<sum();}
};
int="" main()
{

="" cout<<"\nenter="" student="" roll="" no:\t";int="" a;cin="">>a;
cout<<"\nEnter Marks In tow subjects";float b,c;cin>>b>>c;
cout<<"\nEnter Score In Sports :\t";float d;cin>>d;
result s1(a,b,c,d);
result.display();
getch();
return 0;
}

but it is giving compile time error like this

st_Mark_Det must be a previously defined class or struct





Regards
cnu...

-- modified at 12:21 Wednesday 7th September, 2005

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 
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 

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.