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 <string>
#include <iostream>
#include "_pause.h"
using namespace std;
int main() {
int array[5][7] = {{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, 27, 28}, {29 ,30, 31, 32, 33, 34, 35}};
for(int row = 0; row < 5; row++){
for(int column = 0; column < 7; column++){
cout << array[row][column] << "\t";
}
cout << endl;
}
cout << endl;
int seatNumber;
cout << "Enter a seat number to reserve: ";
cin >> seatNumber;
std::cin.get();
_pause();
return 0;
}
|