- 博客(2)
- 收藏
- 关注
原创 2020-02-25
学习c语言结构体时遇到问题,不能将“const char*”类型的值分配到“char”类型实体。 #include <stdio.h> void main() { struct stu { int num; char name[20]; char sex; float score; }boy; boy.num = 1; boy.name[20] = “fgs...
2020-02-25 22:07:27 146
原创 用scanf给结构体输入数据时出现问题
#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)处(位...
2020-02-24 19:25:34 1862 3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人