1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int seat[5][6] = {{1,2,3,4,5},
{1,2,3,4,5},
{1,2,3,4,5},
{1,2,3,4,5},
{1,2,3,4,5},
{1,2,3,4,5}};
int seatsSold = 0;
cout << "Welcome to the movie theater! Choose a seat.\n";
//get user input
//check to see if the seat is occupied
//get price of seat
//charge for seat and mark it occupied
//repeat til seats sold = total Seats
system("PAUSE");
return EXIT_SUCCESS;
}
| |