Random array filling of airline seating assignment

int firstarray[12][7] = { };
double firstClass(int airplane, int seats, double price)
{cout<<setw(60)<<"---------------------...
cout<<setw(60)<<"You are in **first class** booking screen\n";
cout<<setw(60)<<"----------------------...
cout<<"\n";
cout<<"How many seats would you like to book for first class?"<<" ";cin>>seats;
for(int row=0; row<2; row++)
{
for(int column=0;column<7;column++)
{

}
}
}


The thing is, The first 2 rows having 7 columns like this:
0000000
0000000

User gives an input of seats reserved, for example user inputs 3 seats, then the program should give output like:

1110000
0000000

I will not ask any specific seat but put assign seats randomly where available..

How to do it? Please guide me! I have given up after trying for hours!!
Topic archived. No new replies allowed.