Home > Back-end >  The error C2065: "cout" : no statement identifier
The error C2065: "cout" : no statement identifier

Time:10-04

VS2010, the code is as follows:
#include
using namespace std;
Int main (void)
{
Ofstream op (" file_create. TXT ");
Ifstream in;
Op<" My fault "& lt; In the open (" file_create. TXT ", the ios: : _Nocreate);
If (in fail ())
cout<" Open the failure "& lt; The else
cout<" Open the successful "& lt; In the close ();
}
Tried to STD: : cout useless
Add & lt; Iostream> As useful
????
It's strange!

CodePudding user response:

# include & lt; Iostream>
  • Related