Ok, this is a VERY simple program I'm trying to execute. However, at the linking stage I get an error: LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Here's the code:
void main() //the program starts here
cout << ch;
My guess is your using MSVC++, and your building a console app, but didn't choose the project corresponding to console app. Thats why it wants WinMain instead of main.
Aha, sorry about that... thanks.
Don't ever use void main( ). It's not legal C or C++. Always use int main( ).
fstream.h isn't legal C or C++ either. It should be <fstream>, and you'll probably need a "using namespace std;" in there, too.