Click here to Skip to main content
15,889,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhat is the purpose of & in constructors Pin
alaaan7315-Dec-12 7:49
alaaan7315-Dec-12 7:49 
AnswerRe: what is the purpose of & in constructors Pin
Maximilien15-Dec-12 14:29
Maximilien15-Dec-12 14:29 
References are used to not have to do copy of the object passed to the constructor, in this case, strings.

If you did not used references, the string would have been copied at least 1 time too many.
Nihil obstat

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 
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 

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.