Hi,
I am reading "Game Programming All in One". The first chapter starts out with him opening up VB 6 and has your write a simple C++ program. He says you need to add a file to the project, a C++ source file, done. Then you type this up:
Code:
#include <iostream>
main (void)
{
std::cout << "Hello all you happy people" << std::endl;
return 0;
}
However, he does not show it written in VB, instead just typed on the page. So I am a bit confused. I am using Visual C++ 2010 express, and it gives the option to precompile headers, empty project, ect. Nothing seems to work.
With the headers I get:
Code:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
with nothing:
Code:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1> stdafx.cpp
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Please help :\