error C2065: 'cout' : undeclared identifier

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

    If the only file you include is iostream and it still says undefined, then maybe iostream doesn't contain what it's supposed to. Is it possible that you have an empty file coincidentally named "iostream" in your project?

提交回复
热议问题