Hey Everyone..
Right, Doing a little Tutorial for UNI, only just started c++. I have to create an Array that basically shows the Free and Taken seats in a coach.
Right, so F would indicate Free and N would indicate Not free. so far i've gotten:
char p[3];
p[0] = "F";
p[1] = "F";
p[2] = "N";
cout<< p;
Thing is, its having none of it in compiling. I tried it with INT's, it worked, but the numbers were displayed in HEX and i couldt get my head around it.
Now i tried to create 2 arrays so it would show
Seat Avail
1 F
2 F
3 N
But all the online books i been reading have many different formats in what to include which i dont have etc.
How do i go about doing it
Michael
Right, Doing a little Tutorial for UNI, only just started c++. I have to create an Array that basically shows the Free and Taken seats in a coach.
Right, so F would indicate Free and N would indicate Not free. so far i've gotten:
char p[3];
p[0] = "F";
p[1] = "F";
p[2] = "N";
cout<< p;
Thing is, its having none of it in compiling. I tried it with INT's, it worked, but the numbers were displayed in HEX and i couldt get my head around it.
Now i tried to create 2 arrays so it would show
Seat Avail
1 F
2 F
3 N
But all the online books i been reading have many different formats in what to include which i dont have etc.
How do i go about doing it

Michael