fatal error link

stuck on what i'm doing wrong


// Curtis_Lorance.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <iomanip>

using namespace std;



int _main()
{
double registants = 0.0;
int fee1 = 100;
int fee2 = 80;
int fee3 = 60;
double totaldue = 0.0;

cout << " enter number of registants: ";
cin >> registants;


if (registants >= 1 && registants <= 4)
totaldue = registants * fee1;
else if (registants >= 5 && registants <= 10)
totaldue = registants * fee2;
else if (registants >= 11)
totaldue = registants *fee3;

cout << "Total Due: $ "<< totaldue << endl;


system("pause");
return 0;
}


1>------ Build started: Project: Curtis_Lorance, Configuration: Debug Win32 ------
1> Curtis_Lorance.cpp
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Users\curtis\Documents\Visual Studio 2010\Projects\chp6-13\Debug\Curtis_Lorance.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Try changing int _main() to int main()
wow idk how i didn't see that... lol thanks that was it :)
Topic archived. No new replies allowed.