1、字符串输入时,cin>>出现问题 IntelliSense: 没有与这些操作数匹配的 ">>" 运算符
添加#include <string>
using std::string; 即可
使用vector时需要添加#include<vector>
using std::vector;
2、控制台程序,结果一闪而过,只需要在返回前添加 system("pause");
1、字符串输入时,cin>>出现问题 IntelliSense: 没有与这些操作数匹配的 ">>" 运算符
添加#include <string>
using std::string; 即可
使用vector时需要添加#include<vector>
using std::vector;
2、控制台程序,结果一闪而过,只需要在返回前添加 system("pause");