Click here to Skip to main content
15,917,456 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiongood code to return const reference to function local object? Pin
George_George23-Jan-08 0:24
George_George23-Jan-08 0:24 
AnswerRe: good code to return const reference to function local object? Pin
Cedric Moonen23-Jan-08 0:59
Cedric Moonen23-Jan-08 0:59 
GeneralRe: good code to return const reference to function local object? Pin
George_George23-Jan-08 1:43
George_George23-Jan-08 1:43 
GeneralProblem with 'Delete' key. Pin
Sanjay K22-Jan-08 23:57
Sanjay K22-Jan-08 23:57 
GeneralRe: Problem with 'Delete' key. Pin
sheshidar23-Jan-08 1:26
sheshidar23-Jan-08 1:26 
GeneralRe: Problem with 'Delete' key. Pin
Sanjay K23-Jan-08 1:31
Sanjay K23-Jan-08 1:31 
QuestionRe: Problem with 'Delete' key. Pin
David Crow23-Jan-08 2:50
David Crow23-Jan-08 2:50 
GeneralRe: Problem with 'Delete' key. Pin
Sanjay K23-Jan-08 17:03
Sanjay K23-Jan-08 17:03 
GeneralRe: Problem with 'Delete' key. Pin
David Crow24-Jan-08 2:40
David Crow24-Jan-08 2:40 
GeneralRe: Problem with 'Delete' key. Pin
Nitheesh George23-Jan-08 17:24
Nitheesh George23-Jan-08 17:24 
GeneralRe: Problem with 'Delete' key. Pin
Sanjay K24-Jan-08 4:31
Sanjay K24-Jan-08 4:31 
GeneralTwo functions send arguments to a single function. Pin
CodingLover22-Jan-08 23:27
CodingLover22-Jan-08 23:27 
GeneralRe: Two functions send arguments to a single function. Pin
Rajesh R Subramanian22-Jan-08 23:38
professionalRajesh R Subramanian22-Jan-08 23:38 
QuestionRe: Two functions send arguments to a single function. Pin
CPallini22-Jan-08 23:43
mveCPallini22-Jan-08 23:43 
GeneralRe: Two functions send arguments to a single function. Pin
CodingLover23-Jan-08 0:24
CodingLover23-Jan-08 0:24 
QuestionRe: Two functions send arguments to a single function. Pin
CPallini23-Jan-08 0:43
mveCPallini23-Jan-08 0:43 
GeneralRe: Two functions send arguments to a single function. Pin
Rajesh R Subramanian23-Jan-08 0:50
professionalRajesh R Subramanian23-Jan-08 0:50 
GeneralRe: Two functions send arguments to a single function. Pin
CPallini23-Jan-08 0:57
mveCPallini23-Jan-08 0:57 
GeneralRe: Two functions send arguments to a single function. Pin
Rajesh R Subramanian23-Jan-08 1:05
professionalRajesh R Subramanian23-Jan-08 1:05 
GeneralRe: Two functions send arguments to a single function. Pin
David Crow23-Jan-08 2:48
David Crow23-Jan-08 2:48 
Eranga Thennakoon wrote:

How can I send those values to the addData() function using two functions as shown above.


You can't. The two functions you've shown have no way of sending data back to the caller. If you are allowed to change them, something like:

string getName( void )
{
}
 
char getGender( void )
{
}
...
addData(getName(), getGender());
might work.

"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


QuestionMenu bar problem Pin
trioum22-Jan-08 22:58
trioum22-Jan-08 22:58 
GeneralRe: Menu bar problem Pin
KarstenK23-Jan-08 1:16
mveKarstenK23-Jan-08 1:16 
GeneralRe: Menu bar problem Pin
Nitheesh George23-Jan-08 23:05
Nitheesh George23-Jan-08 23:05 
QuestionATL CImage class issue Pin
Antonyemac22-Jan-08 22:30
Antonyemac22-Jan-08 22:30 
GeneralRe: ATL CImage class issue Pin
Mark Salsbery23-Jan-08 6:42
Mark Salsbery23-Jan-08 6:42 

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.