Click here to Skip to main content
16,004,778 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: inheritance problem Pin
x87Bliss18-Mar-07 0:10
x87Bliss18-Mar-07 0:10 
I may be wrong, but I would interpret the problem as a lack of default constructor in the class Baby.

You should make a function in Baby that's just Baby() without any parameters.

I believe when you make a new class, like MyBaby, that is based off another class, Baby, that it needs the base class, Baby, to have a default constructor.

This is because when you construct MyBaby, it will inherit all of Baby, and initialize using Baby().

-----

Your code is hard to follow, because I don't quite get what you're trying to do. When you initialize mybaby obj0(7,25); the variable standard is not initialized anywhere in the code. this would make obj0.show_mybabyname(); to print out garbage for "The standard of my baby is -> "

-----

also note the char mybaby_name; is not initialized as an array, and will not store a name.
I think you fail to see the usefulness in inheritance, as you have mybaby_age and mybaby_weight. When you declare a mybaby object, you can use age and weight that is inherited from the baby class to store the same values.
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 
AnswerRe: I need help in creating a fraction calculator Pin
x87Bliss18-Mar-07 0:25
x87Bliss18-Mar-07 0:25 

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.