Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- ** Einführung in Algorithmen und Datenstrukturen
- ** Vorlage für ein Konsolenprogramm
- **
- ** <Beschreibung>
- **
- ** <Autoren>
- **/
- #include <iostream> // Importiere die Standard Ein- und Ausgabe
- #include <string> // Importiere die String Klasse
- using namespace std; // Verwende den Standard Namensraum std
- //========================================================================
- int main(){
- //Variablen
- int y, zaehl;
- string res,hot,n,interest, answ;
- int drinks;
- char i;
- cout << "Place phone call." <<endl; //place phone call
- cout << "Home?(yes or no)"; //home?
- cin >> n;
- if (n=="yes") { // Falls ja, dann
- cout << "Would you like to share a meal?" <<endl;
- }
- if(n== "no"){ // Falls nein, dann
- cout << "Leave message." <<endl;
- cout << "Wait for callback." <<endl;
- cout << "Would you like to share a meal?" <<endl;
- }
- cout << "What is the response(yes or no):?" <<endl;
- cin>> res;
- if(res== "yes") {
- cout << "Dine together."<<endl;
- }
- if(res== "no"){
- cout << "Do you enjoy a hot beverage?"<<endl;
- cout << "What is the response?(yes or no)"<<endl;
- cin >> hot;
- }
- if (interest== "yes"){
- cout << "Why don't we do that togehter?"<<endl;
- interest=7;
- cin >> interest;
- }
- if (hot== "no"){
- cout << "Recreational activity?"<<endl;
- for(i== 0; i<=5; i++) {
- cout << "Tell me one of your interests."<<endl;
- cout << "Do I share that interest(yes or no)?";
- cin >> interest;
- if (i==5 && interest== "no"){
- cout<< "Choose least objectional interest."<<endl;
- cout << "Partake in interest.";
- }
- if (interest== "yes"){
- i = 5;
- cout << "Why don't we do that togehter?"<<endl;
- cout << "Partake in interest." <<endl;
- }
- }
- if (hot== "yes"){
- cout<< "1.Tea?, 2.Coffee?, 3.Cocoa?"<<endl;
- cin>> drinks;
- if (drinks== 1){
- cout << "Have tea."<<endl;
- }
- if (drinks== 2){
- cout << "Have coffee."<<endl;
- }
- if (drinks== 3){
- cout << "Have cocoa."<<endl;
- }
- }
- }
- cout<< "Begin friendship!"<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement