|
Please excuse my confusion about
this.
Where did the m come from that is in
"MATRIX *m = new *MATRIX;"
That entire line makes no sense to
me.
Here is some info that may
help:
PASSING A STRUCTURE POINTER USING A
FUNCTION:
struct x_type{
int one; // element int two; // element char *pstr; // element } a; // variable list void printStruct(x_type
*px);
int
maint(void)
{ assign values to a; some code .....; printStruct(&a); // a is an
x_type variable
return 0;
} // This uses C++ but there is little
difference from C
void printStruct(x_type
*px)
{ cout << px->one << endl; cout << px->two << endl; cout << px->pstr << endl; }
|
- [c-prog] Struct Issues honamos
- Re: [c-prog] Struct Issues charlie_chan
- Re: [c-prog] Struct Issues Bhasker Agrawal
