#include <iostream>
#include <cstring>
using namespace std;
int main()
{
int i,n,len;
char x[3];
char status[15];
cout<<"This is an airplane passengers seats program"<<endl<<endl;
for(n=1;n<=7;n++){
cout<<n<<" \tA\tB\tC\tD"<<endl<<endl;
}
cout<<"Please enter your seat accordingly : ";
cin.getline(x,3);
cout<<endl;
len=strlen(x);
// for (i=0;i<=len;i++)
// x[i]=toupper(x[i]);
for(int j=1;j<=7;j++){
cout<<j<<" \tA\tB\tC\tD"<<endl<<endl;
}
cout<<"Thank you for using this program"<<endl;
cout<<"Have a nice day"<<endl;
system("pause");
return 0;
}
060609 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
sfuo 111 Practically a Master Poster
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.