Basic c++ calling values problem
Hallo,
I have a basic c++ problem .
I have two c++ files, and i want to pass the values between each other.
for example:
Mac.cc and scheduler.cc
In mac.cc , i have a (char buffer) value and I want to use it in scheduler.cc.
I tried with, by declaring a function in mac.h and pass the buffer variable there but I dont know how to receive it .,
or is there any other easiest way?.
Please help me in this regard.
mfg,
kings
Re: Basic c++ calling values problem
You need to have a global variable in Mac.cc, for example:
And in scheduler.cc you then need to use extern keyword:
Re: Basic c++ calling values problem
Re: Basic c++ calling values problem
Quote:
Originally Posted by kingslee
thank you my friend.
Bitteschön!