Re: Arguments are not being passed correctly -- Please help
Re: Arguments are not being passed correctly -- Please help
- Subject: Re: Arguments are not being passed correctly -- Please help
- From: Markus Hitter <email@hidden>
- Date: Wed, 5 Oct 2005 21:11:56 +0200
Am 05.10.2005 um 20:18 schrieb Markian Hlynka:
not 100% sure here, but I think...
std::cout << sum3(100.0, 100.0, 100.0) << std::endl; //
breakpoint
sum3 returns a double. but where does that double go? [...]
I'm neither a C++ expert, so I can join the group :-)
How about using a good ol' printf()? Here's clearly defined what's
going on:
#include <stdio.h>
...
printf("%lf\n", sum3(100., 100., 100.));
...
Additionally, the compiler warns you about mismatches between the
format string and the number/type of parameters.
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden