A
Anil Gupte
I have never been so embarassed! I have played with C++, and even
created a few simple programs, but decided to learn it properly. So I crack
a book, get into Visual Studio and follow the instructions to create the
following program:
// HelloWorld.cpp : Defines the entry point for the console application.
//
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
and I get an error:
c:\Projects\CPlus2\HelloWorld\HelloWorld.cpp(12): fatal error C1010:
unexpected end of file while looking for precompiled header directive
The code is exactly as shown in the book - (Visual C++ Step by Step by
Templeman and Olsen). What gives?
created a few simple programs, but decided to learn it properly. So I crack
a book, get into Visual Studio and follow the instructions to create the
following program:
// HelloWorld.cpp : Defines the entry point for the console application.
//
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}
and I get an error:
c:\Projects\CPlus2\HelloWorld\HelloWorld.cpp(12): fatal error C1010:
unexpected end of file while looking for precompiled header directive
The code is exactly as shown in the book - (Visual C++ Step by Step by
Templeman and Olsen). What gives?