Quote:
Originally Posted by gregarion
This is in my cpp file
...
value = NasdaqValue ;
|
But where in your cpp? I expect you intend value to be that member of an object of type readNasdaq, but that line would only make sense in a member function of readNasdaq, which you don't seem to have. Also you don't seem to have the object either.
Quote:
Am i right to say that now value can be called to be used at other places by
readNasdaq.w();
w.value();
|
I think I'm guessing right that your intent for
readNasdaq.w();
is to define w as an object of type readNasdaq using the default constructor. The correct syntax for that would be:
readNasdaq w;
Your intent for w.value() is to access the value member of w? The correct syntax for that would be: w.value
But remember value is a member of each object of type readNasdaq, so you can't communicate a value by setting it in one object and accessing it in another.
If you want one value for all readNasdaq, make it a static class member, not an ordinary class member.