error C2065: 'cout' : undeclared identifier

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

    I have seen that if you use

    #include 
    

    then you will get the problem.

    If you use

    #include   
    

    (notice - without the .h)

    then you will not get the problem you mentioned.

提交回复
热议问题