Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Questionhow to save a file? Pin
gentleguy22-Jan-08 22:27
gentleguy22-Jan-08 22:27 
AnswerRe: how to save a file? Pin
CPallini22-Jan-08 22:58
mveCPallini22-Jan-08 22:58 
GeneralRe: how to save a file? Pin
gentleguy23-Jan-08 1:32
gentleguy23-Jan-08 1:32 
GeneralRe: how to save a file? Pin
CPallini23-Jan-08 2:10
mveCPallini23-Jan-08 2:10 
GeneralRe: how to save a file? Pin
gentleguy23-Jan-08 2:16
gentleguy23-Jan-08 2:16 
GeneralRe: how to save a file? Pin
CPallini23-Jan-08 2:20
mveCPallini23-Jan-08 2:20 
GeneralRe: how to save a file? Pin
gentleguy23-Jan-08 19:46
gentleguy23-Jan-08 19:46 
GeneralRe: how to save a file? Pin
CPallini23-Jan-08 21:04
mveCPallini23-Jan-08 21:04 
GeneralRe: how to save a file? Pin
gentleguy23-Jan-08 21:05
gentleguy23-Jan-08 21:05 
QuestionRe: how to save a file? Pin
CPallini23-Jan-08 21:12
mveCPallini23-Jan-08 21:12 
GeneralRe: how to save a file? Pin
gentleguy24-Jan-08 0:22
gentleguy24-Jan-08 0:22 
GeneralRe: how to save a file? Pin
CPallini24-Jan-08 0:49
mveCPallini24-Jan-08 0:49 

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.