ToTo_Cinema/ToToCinema/Source.cpp

27 lines
744 B
C++

#include <iostream>
using namespace std;
string films[10] = { "Champagne redemption", "You are a 12th failure", "The Hellmother", "The light princes", "Elevators death wish", "Lover of a0s:Cumeback", "12 regular dudes and a stripper", "A path to the protein", "Ugly birth", "Pussybar" };
string dates[10] = { "Date: 15.03", "Date: 05.02", "Date: 20.02", "Date: 02.10", "Date: 1.03", "Date: 14.02", "Date: 12.02", "Date: 13.01", "Date: 12.06", "Date: 14.02" };
void printName() {
for (int i = 0; i < 10; i++) {
cout << i + 1 << ") " << films[i] << endl;
}
}
void printDate(int film) {
cout << dates[film - 1] << endl;
}
int main() {
int film;
printName();
cout << "Choose film: ";
printDate(film);
};