首页
编程
java
php
前端
首页
编程
java
php
前端
如图 使用的是vs2019
scanf_s("%s", str);
改成
scanf_s("%s", str, 10);
scanf_s()函数要加一个读取字符的最大长度;
点击展开全文