You need to have a global variable in Mac.cc, for example:
And in scheduler.cc you then need to use extern keyword:Code:int foo = 123;
Code:extern int foo;
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 4 of 4
Thread: Basic c++ calling values problemThreaded View
|
Click Here to Expand Forum to Full Width |