#include <stdio.h>
void main() {
struct list {
int id;
char str[20] = {“aaa”};
}a;
scanf_s("%d", &a.id);
scanf_s("%s", a.str);
printf("%d%s", a.id,a.str);
}
0x0F80E63C (ucrtbased.dll)处(位于 实验1.exe 中)引发的异常: 0xC0000005: 写入位置 0x00B00000 时发生访问冲突。
用scanf给结构体输入数据时出现问题
最新推荐文章于 2023-06-14 18:25:16 发布