64,648
社区成员
发帖
与我相关
我的任务
分享
#include <stdlib.h>
#include <iostream>
#include <cstring>
using namespace std;
typedef struct
{
string words;
int times;
}DATA;
typedef struct node
{
DATA data;
struct node *next;
}linknode,*link;
int main()
{
link p=NULL;
p->data.words="1234"; //这里为什么不可以
cout<<p->data.words;
return 0;
}