error C2065: 'cout' : undeclared identifier

前端 未结 25 2146
误落风尘
误落风尘 2020-12-01 08:40

I am working on the \'driver\' part of my programing assignment and i keep getting this absurd error:

error C2065: \'cout\' : undeclared identifier

25条回答
  •  北海茫月
    2020-12-01 09:26

    Include the std library by inserting the following line at the top of your code:

    using namespace std;
    

提交回复
热议问题