Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Dependency Management (*.h and *.cpp) Experts Pin
Maximilien12-Feb-10 15:20
Maximilien12-Feb-10 15:20 
AnswerRe: Dependency Management (*.h and *.cpp) Experts Pin
Frygreen13-Feb-10 3:46
Frygreen13-Feb-10 3:46 
AnswerRe: Dependency Management (*.h and *.cpp) Experts Pin
Frygreen13-Feb-10 4:21
Frygreen13-Feb-10 4:21 
GeneralRe: Dependency Management (*.h and *.cpp) Experts Pin
Saurabh.Garg13-Feb-10 5:11
Saurabh.Garg13-Feb-10 5:11 
Questiontime while computer works Pin
yozhik8912-Feb-10 11:32
yozhik8912-Feb-10 11:32 
AnswerRe: time while computer works Pin
«_Superman_»12-Feb-10 16:32
professional«_Superman_»12-Feb-10 16:32 
GeneralRe: time while computer works Pin
yozhik8913-Feb-10 0:12
yozhik8913-Feb-10 0:12 
Questionhow to access base class member function Pin
santhosh-padamatinti12-Feb-10 9:53
santhosh-padamatinti12-Feb-10 9:53 
Hi to all

Please look at the following code:
class base
{
public: 
void show_base()
{
cout<<"executing base"<<endl;
}
};
class derived:public base
{
public:
void show_derived()
{
   show_base();     ///// I want to access base class show_base().

    cout<<"code is added at derived class":
}
};

void main()
{
derived d;
d.show_derived();
}

=============================
Required output:
executing base
code is added at derived class
=============================



In the above my problem is "I want to access a base class member function.i.e when i called show_derived(), it needs first calls show_base() and then show_derived() remaining code should execute. Is it possible to call like this. Or please show me any other possibilities


Thanks in advance......................
To invent something, you need a mountain of junk in your mind.
---------------------Thomas alva edison

AnswerRe: how to access base class member function Pin
CPallini12-Feb-10 11:17
mveCPallini12-Feb-10 11:17 
AnswerRe: how to access base class member function Pin
Abhi Lahare12-Feb-10 11:26
Abhi Lahare12-Feb-10 11:26 
GeneralRe: how to access base class member function Pin
santhosh-padamatinti12-Feb-10 19:49
santhosh-padamatinti12-Feb-10 19:49 
QuestionMigrate C++ application to web-based application Pin
transoft12-Feb-10 3:12
transoft12-Feb-10 3:12 
AnswerRe: Migrate C++ application to web-based application Pin
Emilio Garavaglia12-Feb-10 3:45
Emilio Garavaglia12-Feb-10 3:45 
AnswerRe: Migrate C++ application to web-based application Pin
Knut Beese12-Feb-10 5:57
Knut Beese12-Feb-10 5:57 
GeneralRe: Migrate C++ application to web-based application [modified] Pin
transoft12-Feb-10 8:13
transoft12-Feb-10 8:13 
GeneralRe: Migrate C++ application to web-based application Pin
Knut Beese14-Feb-10 22:12
Knut Beese14-Feb-10 22:12 
GeneralRe: Migrate C++ application to web-based application Pin
woiccppw26-Feb-10 3:23
woiccppw26-Feb-10 3:23 
GeneralRe: Migrate C++ application to web-based application Pin
transoft26-Feb-10 3:38
transoft26-Feb-10 3:38 
AnswerRe: Migrate C++ application to web-based application Pin
woiccppw26-Feb-10 4:48
woiccppw26-Feb-10 4:48 
AnswerRe: Migrate C++ application to web-based application PinPopular
Chris Losinger12-Feb-10 5:57
professionalChris Losinger12-Feb-10 5:57 
AnswerRe: Migrate C++ application to web-based application Pin
Alexey Malyshev14-Feb-10 11:36
Alexey Malyshev14-Feb-10 11:36 
QuestionVS6.0 C++ Post-Build Steps Pin
Caslen12-Feb-10 3:06
Caslen12-Feb-10 3:06 
AnswerRe: VS6.0 C++ Post-Build Steps Pin
Chris Meech12-Feb-10 3:17
Chris Meech12-Feb-10 3:17 
GeneralRe: VS6.0 C++ Post-Build Steps Pin
Caslen12-Feb-10 3:19
Caslen12-Feb-10 3:19 
GeneralRe: VS6.0 C++ Post-Build Steps Pin
Chris Meech12-Feb-10 3:35
Chris Meech12-Feb-10 3:35 

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.