Hello to everyone again.
how to I access my struct variables after i have passed it to a funtion?
I made this struct.
Code:struct structy { long * one; long two; long Three; }; using namespace std; void func1 (structy* structy); int main() { } void func1 (structy* structy) { cout<<" the var is " <<structy.one<<endl;//trying to access one here }
This is the error I get.
What am I doing wrong?Code:structhelp.cpp: In function `void func1(structy*)': structhelp.cpp:29: error: request for member `one' in `structy', which is of non-class type `structy*'



LinkBack URL
About LinkBacks


