Hi all....so I'm a C++ noob and I'm trying to test some things I've learned, but am getting a compiler error message I have no clue how to fix.
Here's the error message:
here is the code being compiled in Visual C++ 2008 Express EditionQuote:
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>P:\C++\Projects\General_Template\Debug\General_T emplate.exe : fatal error LNK1120: 1 unresolved externals
Code:// Program1 - A "Sandbox" of sorts
// to practice C++ in
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
//Prototype Declarations
void WelcomeMessage(void);
void ExitMessage(void);
int main(int nNumberofArgs, char* pszArgs[])
{
// Display greeting
void WelcomeMessage(void);
//woo more code goes here
// Display Exit Message
void ExitMessage(void);
system("PAUSE");
return 0;
}
void WelcomeMessage(void)
{
cout << "Welcome, this is my first practical program.\n"
<< "IDFK what it does quite yet, but we'll see \n"
<< "Have a jolly good day, man \n"
<< endl;
return;
}
void ExitMessage(void)
{
cout << "Later, dude! \n"
<< endl;
return;
}
I appreciate any help.
Cheers