Elina did some work yay
parent
d240a1c0fe
commit
7592f03162
|
@ -1,12 +1,27 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
#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:<password>@testandlearnserverclust.54zdaqv.mongodb.net/?retryWrites=true&w=majority";
|
||||
database = getDatabaseLink(database);
|
||||
cout << database;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int film;
|
||||
|
||||
printName();
|
||||
|
||||
cout << "Choose film: ";
|
||||
printDate(film);
|
||||
|
||||
};
|
Loading…
Reference in New Issue