Click here to Skip to main content
15,878,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what is the purpose of & in constructors Pin
alaaan7318-Dec-12 4:43
alaaan7318-Dec-12 4:43 
AnswerRe: what is the purpose of & in constructors Pin
Erudite_Eric16-Dec-12 21:43
Erudite_Eric16-Dec-12 21:43 
GeneralRe: what is the purpose of & in constructors Pin
alaaan7318-Dec-12 4:43
alaaan7318-Dec-12 4:43 
AnswerRe: what is the purpose of & in constructors Pin
CPallini16-Dec-12 22:42
mveCPallini16-Dec-12 22:42 
GeneralRe: what is the purpose of & in constructors Pin
alaaan7318-Dec-12 4:42
alaaan7318-Dec-12 4:42 
AnswerRe: what is the purpose of & in constructors Pin
Sajeesh Payolam17-Dec-12 4:33
Sajeesh Payolam17-Dec-12 4:33 
GeneralRe: what is the purpose of & in constructors Pin
alaaan7318-Dec-12 4:42
alaaan7318-Dec-12 4:42 
AnswerRe: what is the purpose of & in constructors Pin
April Fans22-Dec-12 20:32
April Fans22-Dec-12 20:32 
A constructor is a class member function in C++ and C# that has the same name as the class itself.

The main purpose of the constructor is to initialize all member variables when an object of a said class is created. (Resources acquired such as memory or open files are typically released in the class destructor).

Constructor are automatically invoked when the object is created. Constructor doesn't have any return type, including return voids.
April

Comm100 - Leading Live Chat Software Provider


modified 27-May-14 8:39am.

Questionerror LNK2019: unresolved external symbol "public: SOLVED Pin
alaaan7314-Dec-12 0:24
alaaan7314-Dec-12 0:24 
AnswerRe: error LNK2019: unresolved external symbol "public: Pin
Jochen Arndt14-Dec-12 0:38
professionalJochen Arndt14-Dec-12 0:38 
GeneralRe: error LNK2019: unresolved external symbol "public: Pin
alaaan7314-Dec-12 0:49
alaaan7314-Dec-12 0:49 
AnswerRe: error LNK2019: unresolved external symbol "public: Pin
Graham Breach14-Dec-12 0:40
Graham Breach14-Dec-12 0:40 
GeneralRe: error LNK2019: unresolved external symbol "public: Pin
alaaan7314-Dec-12 0:50
alaaan7314-Dec-12 0:50 
Questionhow to learn c++ according to my goal Pin
ziuss213-Dec-12 19:28
ziuss213-Dec-12 19:28 
AnswerRe: how to learn c++ according to my goal Pin
Richard MacCutchan13-Dec-12 22:39
mveRichard MacCutchan13-Dec-12 22:39 
GeneralRe: how to learn c++ according to my goal Pin
ziuss213-Dec-12 22:45
ziuss213-Dec-12 22:45 
GeneralRe: how to learn c++ according to my goal Pin
Richard MacCutchan13-Dec-12 23:39
mveRichard MacCutchan13-Dec-12 23:39 
AnswerRe: how to learn c++ according to my goal Pin
Sajeesh Payolam13-Dec-12 23:24
Sajeesh Payolam13-Dec-12 23:24 
GeneralRe: how to learn c++ according to my goal Pin
ziuss214-Dec-12 0:02
ziuss214-Dec-12 0:02 
GeneralRe: how to learn c++ according to my goal Pin
Richard MacCutchan14-Dec-12 2:16
mveRichard MacCutchan14-Dec-12 2:16 
GeneralRe: how to learn c++ according to my goal Pin
ziuss214-Dec-12 3:23
ziuss214-Dec-12 3:23 
GeneralRe: how to learn c++ according to my goal Pin
Richard MacCutchan14-Dec-12 3:33
mveRichard MacCutchan14-Dec-12 3:33 
AnswerRe: how to learn c++ according to my goal Pin
Maximilien15-Dec-12 15:00
Maximilien15-Dec-12 15:00 
GeneralRe: how to learn c++ according to my goal Pin
ziuss215-Dec-12 20:10
ziuss215-Dec-12 20:10 
GeneralRe: how to learn c++ according to my goal Pin
Maximilien16-Dec-12 1:55
Maximilien16-Dec-12 1:55 

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.