Re: set double
Re: set double
- Subject: Re: set double
- From: Steve Christensen <email@hidden>
- Date: Sun, 22 Oct 2006 07:34:41 -0700
On Oct 22, 2006, at 3:51 AM, email@hidden wrote:
Someone must have seen this before but when using xcode 2.2 to code
some C++
main.cpp :
#include "test.h"
int main () {
Blabla test;
test.setVar(5);
return 0;
}
void Blabla::setVar(double mvar){
printf("%lf\n", mvar);
var = mvar;
printf("%lf\n", var);
}
I would expect it to output 5 twice
like in gcc
pearl:~/testblala kris$ make
g++ -c -o test.o test.cpp
g++ -c -o main.o main.cpp
g++ -o test -Wall -g test.o main.o
pearl:~/testblala kris$ ./test
5.000000
5.000000
Well, you said what you're expecting to see, but what are you
actually seeing?
_______________________________________________
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