首页
编程
java
php
前端
首页
编程
java
php
前端
string为全局变量和主函数内局部变量时,cin流对string的输入问题
在string为全局变量时,没有问题
但在string为局部变量时,出现了那个,但不影响输出
不知道为什么,还望解答,谢谢
警告提示吧,这个跟编辑器有关系。
加入这个库:
#
include
<string>
包含下头文件
#include <string>
少
#
include
<string>
#
include
<string>
点击展开全文