struct node
{
int a,b,c;
float d;
} *p2;
p2 = new node;
here pls tell me of having p2 after the node definition??
Edited by WingedPanther, 29 May 2008 - 10:50 AM.
add code tags
struct node
{
int a,b,c;
float d;
} *p2;
p2 = new node;
here pls tell me of having p2 after the node definition??
Edited by WingedPanther, 29 May 2008 - 10:50 AM.
add code tags
|
|
|
typedef struct node {
int a,b,c;
float d;
} p2, *p2;
p2* your_struct_pointer;
p2 your_struct;
Or....
struct node {
int a,b,c;
float d;
};
node* your_struct_pointer;
node your_struct;
O... And just so you know it's kinda early so I might have messed something up in that, but you should get the general idea....
Edited by WingedPanther, 29 May 2008 - 10:51 AM.
add code tags