please assist sooooon

Hey guys,

So i keep getting this error:

1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

1>C:\Users\Chris\Desktop\fuck\Debug\fuck.exe : fatal error LNK1120: 1 unresolved externals

I cant change it to a console application it needs to be a win32 project because I need to submit it online and it only reads win32 projects...do you guys have any advice? Im kinda loosing my mind.. My code reads :

/*



*/

#include <iostream>

using namespace std;

char star = '*';
int row, count;

int main()
{
cout << "This program will output a pattern of asterisks with 1 * in the first row, ";
cout << " 2 *'s in the second row, 3 *'s in the third row, 4 *'s in the fourth row, etc." << endl;

cout << "How many rows would you like your pattern to contain?" << endl;
cin >> row;

for (count = 1; count < row; count++)
{
for (star = 0; star <= row; star++)
{
cout << '*';
}
}
return 0;
}

thanks so much guys
The problem is that since it is a Win32 project, it is looking for a WinMain() and not finding one.
Topic archived. No new replies allowed.