I just recently made an app on Visual Studio, but now it's giving me this silly problem I can't make sense of. I've been doing this stuff in my other previously made apps and everything worked fine. I do it now and it seems to be giving me problems.
I tried starting a new app and this is what I get when I include I/O stream and use namespace std.
The code:
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include <iostream>
#include "stdafx.h"
using namespace std;
int main()
{
cout << "Hi" << endl;
return 0;
}
I really don't get what the problem is. Any help would be appreciated.
The errors:
'cout': undeclared identifier
'endl' : undeclared identifier