error C2065: 'cout' : undeclared identifier

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

    I came here because I had the same problem, but when I did #include "stdafx.h" it said it did not find that file.
    What did the trick for me was: #include .
    I use Microsoft Visual Studio 2008.
    These are the things that you can use then, incl. 'count': Link

提交回复
热议问题