解决VScode中使用cout报错

发布于:2023-07-04 ⋅ 阅读:(301) ⋅ 点赞:(0)

解决VScode中使用cout报错

BUG描述

更改了c++的开发工具,从 codeblocks 换到 VS code :

运行 :

#include
using namespace std;


cout << " ******* " << endl ;
报错

尝试的解决方法:

更改 cout 格式 :

std::cout<<****<<std::endl;

提前进行cout,cin等格式的声明:


using namespace std;
using std ::cout;
using std ::cin;
using std ::endl;


网站公告

今日签到

点亮在社区的每一天
去签到