I kept getting error 'x' was not declared in this scope.
Thanks in advance.
class cl {
public: double *x;
}
int main() {
cl c1;
void fctn (cl *) ;
fctn (&c1);
return 0;
}
void fctn(&c1) {
c1->x = 5;
}I kept getting error 'x' was not declared in this scope.
Thanks in advance.
class cl {
public: double *x;
}
int main() {
cl c1;
void fctn (cl *) ;
fctn (&c1);
return 0;
}
void fctn(&c1) {
c1->x = 5;
}