Click here to Skip to main content
15,921,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [HELP!] Timer function or class with timer interval over 0x7fffffff Pin
Monty218-Apr-04 21:22
Monty218-Apr-04 21:22 
GeneralRe: [HELP!] Timer function or class with timer interval over 0x7fffffff Pin
toxcct18-Apr-04 21:29
toxcct18-Apr-04 21:29 
GeneralRe: [HELP!] Timer function or class with timer interval over 0x7fffffff Pin
wb18-Apr-04 22:09
wb18-Apr-04 22:09 
GeneralRe: [HELP!] Timer function or class with timer interval over 0x7fffffff Pin
David Crow19-Apr-04 5:27
David Crow19-Apr-04 5:27 
GeneralDirectX Pin
babai18-Apr-04 21:00
babai18-Apr-04 21:00 
GeneralRe: DirectX Pin
jmkhael18-Apr-04 22:06
jmkhael18-Apr-04 22:06 
Generalcopy constructor of a derived class Pin
Jerome Conus18-Apr-04 20:23
Jerome Conus18-Apr-04 20:23 
GeneralRe: copy constructor of a derived class Pin
Balkrishna Talele18-Apr-04 20:52
Balkrishna Talele18-Apr-04 20:52 
// copycons.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
using namespace std;
class Base
{
public:
Base(){cout <<"\nBase called";}
Base(const Base&){cout<<"\nCopy of based called";}
};

class Derived : public Base
{
public:
Derived(){cout<<"\nDerived called";}

Derived(const Derived& D):Base(D ){cout<<"\nDerived copy con called";}
};
int main(int argc, char* argv[])
{
Derived d; // default constructor of base and derived will be called
cout<<"\nnow copying const for bot-----------------------------------";
Derived d1=d;
return 0;
}


--------------------------------------------------------------------------
output


Base called
Derived called
now copying const for bot-----------------------------------
Copy of based called
Derived copy con called
Press any key to continue
GeneralRe: copy constructor of a derived class Pin
Jiten D. Gandhi18-Apr-04 20:57
Jiten D. Gandhi18-Apr-04 20:57 
GeneralRe: copy constructor of a derived class Pin
toxcct18-Apr-04 21:23
toxcct18-Apr-04 21:23 
QuestionHow shall i use the DLL Pin
NewtonOfComputers18-Apr-04 19:58
NewtonOfComputers18-Apr-04 19:58 
AnswerRe: How shall i use the DLL Pin
Balkrishna Talele18-Apr-04 20:30
Balkrishna Talele18-Apr-04 20:30 
GeneralVirtual COM Port to USB Pin
Daryl Ng18-Apr-04 19:45
sussDaryl Ng18-Apr-04 19:45 
GeneralRe: Virtual COM Port to USB Pin
Antony M Kancidrowski19-Apr-04 4:17
Antony M Kancidrowski19-Apr-04 4:17 
GeneralWinXP and ATL-CTRL-DEL and GDI problem Pin
Balkrishna Talele18-Apr-04 19:17
Balkrishna Talele18-Apr-04 19:17 
GeneralRe: WinXP and ATL-CTRL-DEL and GDI problem Pin
Blake Miller19-Apr-04 8:46
Blake Miller19-Apr-04 8:46 
GeneralRe: WinXP and ATL-CTRL-DEL and GDI problem Pin
Balkrishna Talele19-Apr-04 18:11
Balkrishna Talele19-Apr-04 18:11 
GeneralCHM viewer window Pin
soggie18-Apr-04 17:23
soggie18-Apr-04 17:23 
GeneralReversi source code Pin
Anonymous18-Apr-04 16:34
Anonymous18-Apr-04 16:34 
GeneralRe: Reversi source code Pin
parths18-Apr-04 17:44
parths18-Apr-04 17:44 
GeneralAbout *.lib and *.dll Pin
_David_Lee_18-Apr-04 16:04
_David_Lee_18-Apr-04 16:04 
GeneralRe: About *.lib and *.dll Pin
Hesham Amin18-Apr-04 22:14
Hesham Amin18-Apr-04 22:14 
QuestionGot CodeBlock? Pin
Dassatar18-Apr-04 15:29
Dassatar18-Apr-04 15:29 
AnswerRe: Got CodeBlock? Pin
soggie18-Apr-04 19:30
soggie18-Apr-04 19:30 
GeneralRe: Got CodeBlock? Pin
Balkrishna Talele18-Apr-04 21:22
Balkrishna Talele18-Apr-04 21:22 

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.