confuzzled

#include <iostream>
#include <iomanip>

const int LOOP_LIMIT = 16;

using namespace std;

int main ()
{


char a,b,c,d,e;

char menu_option (int a, char b, int c, double d, int e);
char passenger_first_name;
char passenger_last_name;
void get_data_char_menu_option ( int a, char b, int c, double d, int e);
int j= 0;
int number_of_taken_seats = j = 0;

int number_of_available_seats [LOOP_LIMIT];
int k; number_of_available_seats [16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
int seat_id_number;

cout<<"Welcome to the ISE Seating Program!"<<endl;

cout<<endl;

cout<<"To choose a function, enter its letter label"<<endl;

cout<<endl;

cout<<"a) Show number of empty seats"<<endl;

cout<<"b) Show a list of empty seats"<<endl;

cout<<"c) Assign a customer to seat assignment"<<endl;

cout<<"d) Delete a seat assignment"<<endl;

cout<<"e) Quit the program"<<endl;

for (j; j<=LOOP_LIMIT; ++j);
{
k = j-1;
if (j==1)
cout << "Your seat number is"<<seat_id_number<<endl;
else if ((j >= 2) && (j <=LOOP_LIMIT))
cout<< "Your seat number is"<<seat_id_number<<endl;

cin>>
cout<<[&k]<<endl;
}

void get_data (char menu_option);
{
switch (menu_option)
{
case 'a':cout<<number_of_available_seats<<endl;
break;
case 'b':cout<<number_of_available_seats;
break;
case 'c':cout<<seat_id_number;
break;
case 'd':cout<<number_of_available_seats;
break;
case 'e':cout<<"Thank you for your time, Goodbye!";
break;
}
}


cout<<"Please input your first name"<<endl;

cin>>passenger_first_name;

cout<<"Please input your last name"<<endl;

cin>>passenger_last_name;



system ("pause");

return 0;

}


can someone please tell me what is wrong with this ??
Thanks !
Last edited on
void get_data_char_menu_option (a, b, c, d, e)
The parameters (a, b, c, d, e) must have a type, for example:
void get_data_char_menu_option ( int a, char b, int c, double d, int e )

And in the name of the function you forgot some _'s.
Last edited on
thanks so much!!! \(^_^)/
Topic archived. No new replies allowed.