Here's a snippet of code;
// a simple structure for my experiment
struct new {
int i;
int j;
int k;
};
// This won't compile!
float some_func( new *);
// I can do this though
struct new mystruct;
struct new *pMystruct;
so if I can declare a pointer to the strcuture, why can't I seem to declare a function that takes a pointer to the structure as an argument.
Thanks.
greadey
// a simple structure for my experiment
struct new {
int i;
int j;
int k;
};
// This won't compile!
float some_func( new *);
// I can do this though
struct new mystruct;
struct new *pMystruct;
so if I can declare a pointer to the strcuture, why can't I seem to declare a function that takes a pointer to the structure as an argument.
Thanks.
greadey