diff --git a/ToToCinema/Source.cpp b/ToToCinema/Source.cpp index 7449b95..d747c2f 100644 --- a/ToToCinema/Source.cpp +++ b/ToToCinema/Source.cpp @@ -1,12 +1,27 @@ #include -#include -#include "DD.h" - 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() { - string database = "mongodb+srv://Danzan:@testandlearnserverclust.54zdaqv.mongodb.net/?retryWrites=true&w=majority"; - database = getDatabaseLink(database); - cout << database; - return 0; -} \ No newline at end of file + + int film; + + printName(); + + cout << "Choose film: "; + printDate(film); + +}; \ No newline at end of file