Click here to Skip to main content
15,910,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Tab key On Button controls. Pin
x87Bliss17-Mar-07 23:55
x87Bliss17-Mar-07 23:55 
GeneralRe: Tab key On Button controls. Pin
janpoo17-Mar-07 23:59
janpoo17-Mar-07 23:59 
GeneralRe: Tab key On Button controls. Pin
x87Bliss18-Mar-07 0:15
x87Bliss18-Mar-07 0:15 
GeneralRe: Tab key On Button controls. Pin
janpoo18-Mar-07 0:35
janpoo18-Mar-07 0:35 
GeneralRe: Tab key On Button controls. Pin
x87Bliss18-Mar-07 0:41
x87Bliss18-Mar-07 0:41 
GeneralRe: Tab key On Button controls. Pin
janpoo18-Mar-07 2:16
janpoo18-Mar-07 2:16 
QuestionRe: Tab key On Button controls. Pin
prasad_som18-Mar-07 4:42
prasad_som18-Mar-07 4:42 
Questioninheritance problem Pin
Zealous_Me17-Mar-07 23:42
Zealous_Me17-Mar-07 23:42 
I made a simple programme and there is a single compilation error. i am new to inheritance technicalities so, plz anyone can interpret this error for me.

the orror is ->> cannot find default constructor to initialize base class 'baby' in function mybaby::mybaby(int,int).

i am also enclosing the code for your reference -->>


# include "iostream.h"
# include "conio.h"

class baby
{
private:
int weight,age;
char name[20];
public :
int standard;
baby(int age, int weight, int standard):age(age),weight(weight),standard(standard)
{ }
baby(int age, int weight):age(age),weight(weight)
{ }
void get_name()
{
cout<<"\n \n Enter the name of the baby -> ";
cin>>name;
}
void show_data()
{
cout<<"\n \n The name of the baby is -> "<<name;
cout<<"\n \n="" the="" age="" and="" weight="" of="" baby="" is="" -=""> "<<age<<" &="" "<<weight<<"="" respectively";
}
};

class="" mybaby="" :="" baby
{
private:
int="" mybaby_age,mybaby_weight;
char="" mybaby_name;
public:
mybaby(int="" mybaby_age,="" int="" mybaby_weight):mybaby_age(mybaby_age),mybaby_weight(mybaby_weight)
{="" }

void="" get_mybabyname()
{
cout<<"\n="" \n="" the="" name="" of="" my="" baby="" -=""> ";
cin>>mybaby_name;
}
void show_mybabyname()
{
cout<<"\n \n The name of my baby is -> "<<mybaby_name;
cout<<"\n \n="" the="" standard="" of="" my="" baby="" is="" -=""> "<
AnswerRe: inheritance problem Pin
x87Bliss18-Mar-07 0:10
x87Bliss18-Mar-07 0:10 
AnswerRe: inheritance problem Pin
Stephen Hewitt18-Mar-07 0:15
Stephen Hewitt18-Mar-07 0:15 
AnswerRe: inheritance problem Pin
toxcct18-Mar-07 4:40
toxcct18-Mar-07 4:40 
GeneralRe: inheritance problem Pin
Zealous_Me18-Mar-07 6:19
Zealous_Me18-Mar-07 6:19 
QuestionVisual C++ 6.0 on Vista?? Pin
x87Bliss17-Mar-07 23:37
x87Bliss17-Mar-07 23:37 
AnswerRe: Visual C++ 6.0 on Vista?? Pin
prasad_som18-Mar-07 1:37
prasad_som18-Mar-07 1:37 
AnswerRe: Visual C++ 6.0 on Vista?? Pin
Michael Dunn18-Mar-07 8:20
sitebuilderMichael Dunn18-Mar-07 8:20 
GeneralRe: Visual C++ 6.0 on Vista?? Pin
x87Bliss18-Mar-07 12:33
x87Bliss18-Mar-07 12:33 
Questionc free() function Pin
Ayman Mashal17-Mar-07 21:21
Ayman Mashal17-Mar-07 21:21 
AnswerRe: c free() function Pin
Sean Wcisel17-Mar-07 21:56
Sean Wcisel17-Mar-07 21:56 
AnswerRe: c free() function Pin
Stephen Hewitt18-Mar-07 0:19
Stephen Hewitt18-Mar-07 0:19 
AnswerRe: c free() function Pin
prasad_som18-Mar-07 1:34
prasad_som18-Mar-07 1:34 
AnswerRe: c free() function Pin
ThatsAlok18-Mar-07 20:39
ThatsAlok18-Mar-07 20:39 
QuestionKeep the value of an array slot from changing Pin
Sean Wcisel17-Mar-07 20:03
Sean Wcisel17-Mar-07 20:03 
AnswerRe: Keep the value of an array slot from changing Pin
Michael Dunn18-Mar-07 8:22
sitebuilderMichael Dunn18-Mar-07 8:22 
GeneralRe: Keep the value of an array slot from changing Pin
Sean Wcisel18-Mar-07 8:45
Sean Wcisel18-Mar-07 8:45 
QuestionI need help in creating a fraction calculator Pin
dragon53217-Mar-07 18:52
dragon53217-Mar-07 18:52 

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.