这段代码为什么运行有错,求大侠们指点,
#include<iostream>using namespace std;
#define NULL 0
struct A
{
int n;
};
struct B
{
A m;
};
A a;
B *b;
int main()
{
b=NULL;
cin>>a.n;
cout<<a.n<<endl;
cin>>b->m.n;
cout<<b->m.n<<endl;
return 0;
}
2012-04-14 18:16
2012-04-14 18:28
2012-04-14 19:40