I'm using MS Visual C++ 2010 express. I just tried out the example from my text book and followed exactly the same. But at the end, this error was shown.
hello koe (dutch?)
please give us more information.
give us you're code, the path in which your file is saved in etc.
and i believe you are using the debug mode (F5) but maybe try to use built solution (F7)