Click here to Skip to main content
15,909,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiple Handler for same event Pin
Sarath C3-Aug-06 5:41
Sarath C3-Aug-06 5:41 
GeneralRe: Multiple Handler for same event Pin
ovidiucucu3-Aug-06 5:57
ovidiucucu3-Aug-06 5:57 
AnswerRe: Multiple Handler for same event Pin
ovidiucucu3-Aug-06 4:30
ovidiucucu3-Aug-06 4:30 
QuestionTechnology Migration Pin
Chitrack3-Aug-06 3:47
Chitrack3-Aug-06 3:47 
QuestionCommand Prompt commands from vc++ gui [modified] Pin
vineet14083-Aug-06 3:18
vineet14083-Aug-06 3:18 
AnswerRe: Command Prompt commands from vc++ gui Pin
David Crow3-Aug-06 4:20
David Crow3-Aug-06 4:20 
GeneralRe: Command Prompt commands from vc++ gui Pin
vineet14083-Aug-06 8:24
vineet14083-Aug-06 8:24 
QuestionFunction with default arguments Pin
Andy Rama3-Aug-06 3:03
Andy Rama3-Aug-06 3:03 
Hi,
If I can declare a function as
void Show(int i = 1729,double d);
But I can't call this function by passing only 2nd argument then what is the use of that function? OR How to use this function (to pass only 2nd argument)?

ex.
void Show(int i, double d = 3.14);
void Show(int i = 1729,double d);
void Show(int i, double d)
{
printf("\n\t %d %0.2lf",i,d);
}
main()
{
Show(); // Output 1729 3.14
Show(12); // Output 12 3.14
Show(45,5.6); // Output 45 5.60
Show(23.9); // Output 23 3.14 ....... But can I get output as 1729 23.9 ?
}

Thanks & Best Regards,
Aniket Salunkhe
AnswerRe: Function with default arguments Pin
toxcct3-Aug-06 3:06
toxcct3-Aug-06 3:06 
GeneralRe: Function with default arguments [modified] Pin
Andy Rama3-Aug-06 3:07
Andy Rama3-Aug-06 3:07 
AnswerRe: Function with default arguments Pin
Nyarlatotep3-Aug-06 3:07
Nyarlatotep3-Aug-06 3:07 
GeneralRe: Function with default arguments Pin
Zac Howland3-Aug-06 3:45
Zac Howland3-Aug-06 3:45 
GeneralRe: Function with default arguments Pin
Nyarlatotep3-Aug-06 3:48
Nyarlatotep3-Aug-06 3:48 
GeneralRe: Function with default arguments Pin
Zac Howland3-Aug-06 3:53
Zac Howland3-Aug-06 3:53 
AnswerRe: Function with default arguments Pin
Gary R. Wheeler3-Aug-06 3:12
Gary R. Wheeler3-Aug-06 3:12 
AnswerRe: Function with default arguments Pin
Zac Howland3-Aug-06 3:43
Zac Howland3-Aug-06 3:43 
AnswerRe: Function with default arguments Pin
David Crow3-Aug-06 4:34
David Crow3-Aug-06 4:34 
GeneralRe: Function with default arguments Pin
Gary R. Wheeler3-Aug-06 5:30
Gary R. Wheeler3-Aug-06 5:30 
AnswerRe: Function with default arguments Pin
Hamid_RT4-Aug-06 6:50
Hamid_RT4-Aug-06 6:50 
QuestionTime zones [modified] Pin
Nyarlatotep3-Aug-06 3:00
Nyarlatotep3-Aug-06 3:00 
QuestionRe: Time zones Pin
David Crow4-Aug-06 3:11
David Crow4-Aug-06 3:11 
AnswerRe: Time zones Pin
Nyarlatotep4-Aug-06 3:19
Nyarlatotep4-Aug-06 3:19 
GeneralRe: Time zones Pin
David Crow4-Aug-06 4:07
David Crow4-Aug-06 4:07 
GeneralRe: Time zones [modified] Pin
Nyarlatotep4-Aug-06 4:19
Nyarlatotep4-Aug-06 4:19 
QuestionRe: Time zones Pin
David Crow4-Aug-06 4:30
David Crow4-Aug-06 4:30 

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.