Hey guys I'm playing with structs and trying to get one to include the other:
#include <iostream>
#include <string>
using namespace std;
typedef struct data
{
string dat;
} DATA;
typedef struct name
{
string na;
string age;
NAME * DATA;
}NAME;
int main()
{
return 0;
}
is this syntax right? it compiles but when i try to access dat through the name struc it wont :S
Cheers,