![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
m0_46255488
这个作者很懒,什么都没留下…
展开
-
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 · 139 阅读 · 0 评论 -
用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 · 1835 阅读 · 3 评论