Hi :
I need to write a program to make a reservation program for a small airline.
10 seats on the plane.
I want to keep track of the name frquent flyer id and seat number.
The seats also need to be separated between smoking and non smoking.

This is what I have and I know it is not done it has a lot of errors but I need a little help as to where to go from here?

Any suggestions would be appreciated.

Dan



# include<iostream>
# include<string>

using namespace std;

struct reserve {
string passenger name;
string ffid;
int seat, number;

}

int seat[10]=0;



void smoking(){
cout<<"enter your name";
cin>> name;
cout<<"enter your frequent flyer id";
cin>>ffid;
cout<<"enter a seat number between 1-5;
cin>>seat number;
}

void non smoking(){
cout<<"enter your name";
cin>>name;
cout<<"enter your frequent flyer id";
cin>>ffid;
cout<<"enter a seat number between 6-10;
cin>>seat number;
}


int reserve seats[10]
for(i=0,i<10,i++);
seats[i]=0;

int main(void){
int choice=-1
cout<<"enter 1 for smoking,enter 2 for non smoking" endl;
if(choice==1) smoking();
elsa if(choice==2) non smoking();

return 0;
}