Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- /// Input una stringa che descrive le bevande della serata
- /// A scelta tra:
- /// Alcoliche: Beer, Vodka, Gin, Wine, Shot
- /// Analcoliche: Water, Cider, Juice, Coke
- /// Esempio di input:
- /// 1 Beer,2 Gin,3 Water,2 Shot,10 Coke
- /// Numero di bevande alcoliche bevute quella sera in questo caso: 1 + 2 + 2 = 5
- /// L'utente dovrà bere lo stesso numero di bicchieri d'acqua per punizione
- const std::string alcoholics[] = { "Beer", "Vodka", "Gin", "Wine", "Shot" };
- const std::string non_alcoholics[] = { "Water", "Cider", "Juice", "Coke" };
- int main () {
- using namespace std;
- string night_drinks;
- getline(cin, night_drinks);
- cout << "Night: " << night_drinks << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment