老是提示"Access Violation",求教

m1043 m1043 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
#include <iostream>
#include <cstring>

using namespace std;

typedef char DataType;
#define N 30

struct stu
{
char name[N];
char num[10];
char mail[N];
struct stu *next;
int seletion;
char date[N];
};

char popList(stu *H)
{
stu *p=H;
while(p->next){
cout<<"你的姓名是:";
cin>>p->next->name;
cout<<"你的手机号码是:";
cin>>p->next->num;
cout<<"你的邮件是:";
cin>>p->next->mail;
cout<<"继续录入请按0 否则请按1";
cin>>p->next->seletion;
if (p->next->seletion==0)
{
p=p->next;
popList(p);
}
if(p->seletion==1)
return 1;
}

}
...全文
评论 6
收藏 已收藏
分享
返回顶部
m1043
C++ 语言 65,214 成员 250,514 内容