Click here to Skip to main content
15,906,333 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what it mean ? Pin
Cedric Moonen11-Dec-07 22:38
Cedric Moonen11-Dec-07 22:38 
inline means that the function is inlined (the compiler will replace a call to the function by the code of the function itself). Search for inline on google

The & means that the function returns a reference to the object instead of a copy of the object. By default, in C++ when you pass arguments to a function, you will in fact have a copy of the object, not the original object. The same with the return of the function: you will get a copy of the object. By using the reference, it means that you will get the original object, not a copy (so, if you modify it outside the class, it will be modified in the class also).

But I think your code is wrong: you forgot the class name (or is does it come from a header file ? If yes, the inline is not needed).



Cédric Moonen
Software developer

Charting control [v1.2]

AnswerRe: what it mean ? Pin
ThatsAlok13-Dec-07 0:18
ThatsAlok13-Dec-07 0:18 
Generalcannot convert from 'char *' to 'unsigned short *' Pin
santhoshv8411-Dec-07 21:50
santhoshv8411-Dec-07 21:50 
GeneralRe: cannot convert from 'char *' to 'unsigned short *' Pin
Cedric Moonen11-Dec-07 21:55
Cedric Moonen11-Dec-07 21:55 
GeneralRe: cannot convert from 'char *' to 'unsigned short *' Pin
CPallini11-Dec-07 22:01
mveCPallini11-Dec-07 22:01 
GeneralProblem in Opening HTML file. Pin
sanjeeva K Kanakam11-Dec-07 21:23
sanjeeva K Kanakam11-Dec-07 21:23 
GeneralRe: Problem in Opening HTML file. Pin
Iain Clarke, Warrior Programmer12-Dec-07 1:52
Iain Clarke, Warrior Programmer12-Dec-07 1:52 
Generalatof() losing precision Pin
Andy H11-Dec-07 20:33
Andy H11-Dec-07 20:33 
GeneralRe: atof() losing precision Pin
Cedric Moonen11-Dec-07 21:02
Cedric Moonen11-Dec-07 21:02 
GeneralRe: atof() losing precision Pin
Llasus11-Dec-07 21:07
Llasus11-Dec-07 21:07 
GeneralRe: atof() losing precision Pin
Cedric Moonen11-Dec-07 21:13
Cedric Moonen11-Dec-07 21:13 
GeneralFiles related Pin
rajanponnalagu11-Dec-07 19:35
rajanponnalagu11-Dec-07 19:35 
GeneralRe: Files related Pin
Llasus11-Dec-07 20:45
Llasus11-Dec-07 20:45 
GeneralRe: Files related Pin
rajanponnalagu11-Dec-07 21:21
rajanponnalagu11-Dec-07 21:21 
GeneralRe: Files related Pin
Sunil Shindekar11-Dec-07 23:38
Sunil Shindekar11-Dec-07 23:38 
GeneralRe: Files related Pin
rajanponnalagu12-Dec-07 1:08
rajanponnalagu12-Dec-07 1:08 
GeneralRe: Files related Pin
Iain Clarke, Warrior Programmer12-Dec-07 1:57
Iain Clarke, Warrior Programmer12-Dec-07 1:57 
GeneralRe: Files related Pin
Sunil Shindekar12-Dec-07 19:59
Sunil Shindekar12-Dec-07 19:59 
GeneralRe: Files related Pin
David Crow13-Dec-07 5:11
David Crow13-Dec-07 5:11 
QuestionRe: Files related Pin
David Crow13-Dec-07 5:13
David Crow13-Dec-07 5:13 
GeneralRe: Files related Pin
Paresh Chitte11-Dec-07 21:30
Paresh Chitte11-Dec-07 21:30 
GeneralRe: Files related Pin
rajanponnalagu11-Dec-07 22:21
rajanponnalagu11-Dec-07 22:21 
QuestionEdit subitem in ListView ? Pin
nitin311-Dec-07 19:29
nitin311-Dec-07 19:29 
AnswerRe: Edit subitem in ListView ? Pin
Llasus11-Dec-07 20:46
Llasus11-Dec-07 20:46 
AnswerRe: Edit subitem in ListView ? Pin
Naveen11-Dec-07 20:59
Naveen11-Dec-07 20:59 

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.