文件中已引入:#include <iostream>
原因是未指定:using namespace std;
C++ 1998要求 cout and endl 使用std::cout,std::endl格式,或者在程序开始申明“ using namespace std;”,不然会出现”cout was not declare this in scope“的错误
main.cpp|64|error: 'cout' was not declared in this scope|
猜你喜欢
转载自blog.csdn.net/qq_38627475/article/details/105175167
今日推荐
周排行