just C++ in xcode
just C++ in xcode
- Subject: just C++ in xcode
- From: Joe Kurtz <email@hidden>
- Date: Wed, 28 Sep 2005 20:48:47 -0700 (PDT)
Maybe this is a C++ question not having to do with
xcode, but I'm desparate...
If I have a named namespace in foo1.h:
namespace myspace
{
int myvar;
};
and in foo1.cpp:
#include foo1.h
using namespace myspace;
myvar=1;
and in foo2.cpp
#include foo1.h
using namespace myspace;
cout<<myvar;
If the code in foo1.cpp executes before foo2.cpp, why
should I not find myvar has a value of 1 in foo2?
Joe
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
_______________________________________________
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