Hello to everyone again.
how to I access my struct variables after i have passed it to a funtion?
I made this struct.
long * one;
using namespace std;
void func1 (structy* structy);
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?
structhelp.cpp: In function `void func1(structy*)':
structhelp.cpp:29: error: request for member `one' in `structy', which is of non-class type `structy*'