void cancelReservati on(SEAT p[][COLS])
{
int row;
int col;
getSeat(p, row, col);
if(p[row][col].occupied==fals e)
cout<<"The reservation is empty.";
else
p[row][col].occupied=false ;
}
User Profile
Collapse
-
how come i can't view my reservations?? here's my code....
...Code:#include<iostream> #include<string> #include<cctype> using namespace std; struct SEAT { bool occupied; // initially, false string first,last; // passenger name int numBags; // max of 4 char mealType; // (r)egular, (v)egetaria, (o)ther }; const int ROWS= 20; const int COLS= 10; -
0 errors but no output.. any advice??
...Code:#include <iostream> #include <cctype> #include <string> #include <cstring> using namespace std; int assignSeat(int seat_num, int row_num, int pass_num); int num1(char*); int num2(char*); int NumSeats = 200; void InitializeSeats(); void Reserve(); void Cancel(); void ChangeSeat(); void Display();
-
i have already compiled it... but then i get 61 errors just on my int main... i dont get my problem there.. it says here...
syntax error : 'bad suffix on number'
syntax error : 'constant'
newline in constant
syntax error : missing ';' before '{'
syntax error : 'bad suffix on number'
syntax error : missing ';' before 'constant'
newline in constant
syntax error : missing ';' before identifier 'B'... -
The Problem is on my 'int main( )' what do you suggest???
...Code:#include <iostream> #include <cctype> #include <string> #include <cstring> using namespace std; int assignSeat(int seat_num, int row_num, int pass_num); int num1(char*); int num2(char*); int NumSeats = 200; void InitializeSeats(); void Reserve(); void Cancel(); void ChangeSeat(); void Display(); struct Seat
Last edited by Frinavale; Dec 8 '09, 04:00 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags. -
prakatak7410 started a topic where can i post my program where i can ask privately... i need proffesional help plsin Cwhere can i post my program where i can ask privately... i need proffesional help pls
i have my codes... who or where could i ask professional assistance??
No activity results to display
Show More
Leave a comment: