Hello everybody!
I have this program that it takes the input of row and seat of the user and displays a list of the rows taken in an airplane.
1 AB CD
2 AB CD
3 AB CD
4 AB CD
5 AB CD
6 AB CD
7 AB CD
Once the user inputs a row and a seat it places an X on the place.
They all work up, except row 1 and 2. It is a pretty simple fix but I can't get to find it.
Any help would be really appreciated.
Here is a copy of the code
#include <iostream>
#include <string>
using namespace std;
int main()
{
char Seat = ' ';
string Airline[7] = {"1ABCD", "2ABCD", "3ABCD", "4ABCD", "5ABCD", "6ABCD", "7ABCD"};
char Again = ' ';
int Row =0;