• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: set double
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >set double (From: email@hidden)

  • Prev by Date: set double
  • Next by Date: Re: set double
  • Previous by thread: set double
  • Next by thread: Re: set double
  • Index(es):
    • Date
    • Thread