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!!

Daniweb is not a homework service. Please provide evidence that you've attempted a solution on your own, as per our rules.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.