error C2065: 'cout' : undeclared identifier

前端 未结 25 2137
误落风尘
误落风尘 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:21

    before you begin this program get rid of all the code and do a simple hello world inside of main. Only include iostream and using namespace std;. Little by little add to it to find your issue.

    cout << "hi" << endl;
    

提交回复
热议问题