Void fuction

Hello,I'm getting this error. 1>LINK : fatal error LNK1561: entry point must be defined.
Please forgive,I am a newbie with no program talents at all.


#include <iostream>
#include <cctype>
#include <cstdlib>
#include <iomanip>

using namespace std;


void mymenu()

{
// initialize variable

int order = 0;
int num1=0, num2=0, num3=0, num4=0, num5=0;
int sentinel=0;
double CompleteOrder = 0.0;

const double UnitPrice1= 3.99, UnitPrice2= 4.99,UnitPrice3= 1.99, UnitPrice4= .99;
double AmountofSale1=0, AmountofSale2=0, AmountofSale3=0, AmountofSale4=0;

{
cout<<"___________________Menu________________\n\n"
<<"_____(1) hamburgers $3.95_____\n"
<<"_____(2) Cheeseburger $4.99_____\n"
<<"_____(3) Fries $1.99_____\n"
<<"_____(4) Cokes $. 99_____\n\n";
}


while (order != 5)

// prompt user
{
cout<<"From the list of food, what would you like:\n";
cin>>order;
}

switch(order)

{
case 0:
break;

case 1:
cout<<"How many Hamburgers would you like to order:\n";
cin>>num1;
AmountofSale1 = UnitPrice1 * num1;
break;

case 2:
cout<<"How many Cheeseburgers would you like to order:\n";
cin>>num2;
AmountofSale2= UnitPrice2 * num2;
break;

case 3:
cout<<"How many Fries would you like to order:\n";
cin>>num3;
AmountofSale3= UnitPrice3 * num3;
break;


case 4:
cout<<"How many Cokes would you like with this order:\n";
cin>>num4;
AmountofSale4= UnitPrice4 * num4;
break;

case 5:
cout<< "Thank you for your business\n"<<endl;
break;

default: cout<<"Please choose a valid item from our list\n";
break;
}


cout <<"You have ordered:\n\n";

cout<<left<<setw(15)<<"ITEM"<<right<<setw(10)<<"QUANTITY"<<right<<setw(15)<<"UNIT PRICE"<<right<<setw(20)<<"AMOUNT OF SALE\n"<<endl;
cout<<"Hamburger "<<setw(8)<<left<< num1 <<setw(8)<<right<< UnitPrice1 <<setw(15) <<right<< AmountofSale1<<endl<<endl;
cout<<"Cheeseburgers "<<setw(8)<<left<< num2 <<setw(8)<<right<< UnitPrice2 <<setw(15) <<right<< AmountofSale2<<endl<<endl;
cout<<"Fries "<<setw(8)<<left<< num3 <<setw(8)<<right<< UnitPrice3 <<setw(15) <<right<< AmountofSale3<<endl<<endl;
cout<<"Cokes "<<setw(8)<<left<< num4 <<setw(8)<<right<< UnitPrice4 <<setw(15) <<right<< AmountofSale4<<endl<<endl;
cout<<setw(46)<<"TOTAL "<<(AmountofSale1 + AmountofSale2 + AmountofSale3 + AmountofSale4)<<endl;





void main();
{
system("PAUSE");
}
}

1) You have no main entry point because you're trying to define main inside mymenu.

2) main appears as a function declaration because you have a semicolon after the parens.

3) You never call mymenu from main.

PLEASE USE CODE TAGS (the <> formatting button) when posting code. It makes your code easier to read and it makes it easier to respond to your post.
Thank for taking the time
Topic archived. No new replies allowed.