Click here to Skip to main content
15,892,737 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVS.NET UI elements -- howto? Pin
Anonymous25-Oct-02 21:13
Anonymous25-Oct-02 21:13 
GeneralRegisterd ActiveX controls Pin
Didaa25-Oct-02 20:24
Didaa25-Oct-02 20:24 
GeneralCOM interface for Image editing Pin
Neha25-Oct-02 19:26
Neha25-Oct-02 19:26 
GeneralRe: COM interface for Image editing Pin
Paul M Watt26-Oct-02 19:47
mentorPaul M Watt26-Oct-02 19:47 
Questionis there any lose of values? Pin
imran_rafique25-Oct-02 17:32
imran_rafique25-Oct-02 17:32 
AnswerRe: is there any lose of values? Pin
Michael Dunn25-Oct-02 20:31
sitebuilderMichael Dunn25-Oct-02 20:31 
GeneralRe: is there any lose of values? Pin
imran_rafique26-Oct-02 16:03
imran_rafique26-Oct-02 16:03 
QuestionMultiple inheritance or what? Pin
SriKrishna25-Oct-02 13:37
SriKrishna25-Oct-02 13:37 
I have a little problem here maybe someone can help me please. I have to provide a Programmer class Cry | :(( which is a sub class of both Person class and the Staff class. I have done simple inheritance but I don’t know much about multiple inheritance. Can anyone please help me with initial part of the program. Here are the Person.h and Staff.h file:

Person.h

#ifndef __PERSON_H
#define__PERSON_H

class Person{
Protected:
char* name;
int age;

Public:
Person(char*, int);
Person(const Person&);
Person& operator=(const Person&);
~Person();
char* getName();
int getAge();
};
#endif

&&&&&&&&&&&&&

Staff.h

#ifndef __STAFF_H
#define__STAFF_H
class Staff{
Protected :
Char* post;

Public:
Staff(char*);
Staff(const Staff&);
Staffoperator=(const Staff&);
`Staff();
char* getPost();
};
#endif

// thanks for replying

AnswerRe: Multiple inheritance or what? Pin
Paul M Watt25-Oct-02 21:23
mentorPaul M Watt25-Oct-02 21:23 
AnswerRe: Multiple inheritance or what? Pin
Chris Richardson26-Oct-02 7:21
Chris Richardson26-Oct-02 7:21 
GeneralRe: Multiple inheritance or what? Pin
SriKrishna26-Oct-02 8:41
SriKrishna26-Oct-02 8:41 
AnswerRe: Multiple inheritance or what? Pin
SriKrishna26-Oct-02 8:46
SriKrishna26-Oct-02 8:46 
GeneralRe: Multiple inheritance or what? Pin
Chris Richardson26-Oct-02 13:42
Chris Richardson26-Oct-02 13:42 
GeneralRe: Multiple inheritance or what? Pin
SriKrishna26-Oct-02 15:06
SriKrishna26-Oct-02 15:06 
QuestionMultiple inheritance or what? Pin
SriKrishna25-Oct-02 13:36
SriKrishna25-Oct-02 13:36 
GeneralOverloaded and assignment operators Pin
mcgraw25-Oct-02 13:27
mcgraw25-Oct-02 13:27 
GeneralIPicture object duplication... Pin
nebbish25-Oct-02 12:43
nebbish25-Oct-02 12:43 
GeneralRe: IPicture object duplication... Pin
Michael Dunn25-Oct-02 14:51
sitebuilderMichael Dunn25-Oct-02 14:51 
GeneralRe: IPicture object duplication... Pin
nebbish25-Oct-02 15:05
nebbish25-Oct-02 15:05 
GeneralSDK vs MFC ownerdraw Pin
alex.barylski25-Oct-02 12:33
alex.barylski25-Oct-02 12:33 
GeneralRe: SDK vs MFC ownerdraw Pin
Ravi Bhavnani25-Oct-02 12:46
professionalRavi Bhavnani25-Oct-02 12:46 
GeneralRe: SDK vs MFC ownerdraw Pin
alex.barylski25-Oct-02 13:08
alex.barylski25-Oct-02 13:08 
GeneralRe: SDK vs MFC ownerdraw Pin
Ravi Bhavnani26-Oct-02 4:55
professionalRavi Bhavnani26-Oct-02 4:55 
GeneralNeed Help(CDC) Pin
Svin25-Oct-02 10:49
Svin25-Oct-02 10:49 
GeneralRe: Need Help(CDC) Pin
includeh1025-Oct-02 21:15
includeh1025-Oct-02 21:15 

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.