33,311
社区成员
发帖
与我相关
我的任务
分享
#include "stdio.h"
typedef struct VertNode
{
char VertexType;
}VertNode;
void main()
{
VertNode *vertNode;
printf("请输入一个顶点类型字符:\n");
scanf("%s",&vertNode->VertexType);
}
void main()
{
VertNode *vertNode = malloc(sizeof(VertNode));
printf("请输入一个顶点类型字符:\n");
scanf("%s",&vertNode->VertexType);
}