#include <iostream>
using namespace std;
int main()
{
char A,B,C,D;
const char capacity = 120;
char letter[capacity];
int pax = 0;
int y =6;
for (int i = 0; i < capacity; i++)
{
if ( y == 6)
{ char letter[] = {A};
pax++;
break;
}
else if ( y == 8)
{ char letter[] = {B};
pax++;
break;
}
else if ( y == 12)
{ char letter[] = {C};
pax++;
break;
}
else if ( y == 14)
{ char letter[] = {D};
pax++;
break;
}
}
cout << letter[capacity]<< endl;
cout << pax;
return 0;
}
I don't understand why the character A isn't printed out to the screen, I would appreciate any help please as my project is due in 24hrs and this is a main part.