Joined: Wed May 06, 2009 1:25 am Posts: 1 Has thanked: 0 time Have thanks: 0 time
I’m having trouble with my compiling my program. I get the following errors: FerreteriaIII error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
// We set the prices for each item and the taxes double paila = 24.0; double loza = 12.0; double taxes = 0.07; // check data type decimal spaces char stop = ' ';
// Input (Variables that will hold what the cashier enters) // We set them to zero just as a default value double pailaCantidad = 0; double lozaCantidad = 0;
// Output (What the cashier will recieve) // double subTotal = 0.0; double total = 0.0;
//-- What to prompt the cashier with --
// Input variables Console::Write("Entre la cantidad de Pailas : "); pailaCantidad = Convert::ToInt32(Console::ReadLine());
Console::Write("Entre la cantidad de Loza : "); lozaCantidad = Convert::ToInt32(Console::ReadLine());
//-- Do the math according to what the cashier entered --
// Calculations (Adding items together in the function called) total = calcTotal(pailaCantidad, lozaCantidad, paila, loza, taxes);
//-- Return results to the cashier -- // show payment amounts Console::WriteLine("Subtotal : $", Convert::ToString(subTotal)); Console::WriteLine("Total : $", Convert::ToString(total));