Advertisement
lhaziri

Friendshipkorrigiert

Nov 15th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.02 KB | None | 0 0
  1. /*
  2.  * Friend.cpp
  3.  *
  4.  *  Created on: 16.11.2019
  5.  *      Author: lhazi
  6.  */
  7.  
  8. #include "Friend.h"
  9. #include<iostream>
  10. #include<string>
  11.  
  12. using namespace std;
  13.  
  14. int main(){
  15.     //Variables
  16.         string n = "n";
  17.         string res = "res";
  18.         string hot = "hot";
  19.         string interest = "interest";
  20.         int drinks,i;
  21.  
  22.         cout << "Place phone call." <<endl;                                   //place phone call
  23.         cout << "Home?(yes or no)" <<endl;
  24.         cin>> n;
  25.  
  26.         if(n=="yes"){
  27.             cout << "Would you like to share a meal?" <<endl;
  28.         }
  29.         if(n== "no"){                                                         // Falls nein, dann
  30.             cout << "Leave message." <<endl;
  31.             cout << "Wait for callback." <<endl;
  32.             cout << "Would you like to share a meal?" <<endl;
  33.         }
  34.  
  35.         cout << "What is the response(yes or no):?" <<endl;
  36.  
  37.         cin>> res;
  38.         if(res== "yes") {
  39.             cout << "Dine together."<<endl;
  40.         }
  41.         if(res== "no"){
  42.             cout << "Do you enjoy a hot beverage?"<<endl;
  43.             cout << "What is the response?(yes or no)"<<endl;
  44.             cin >> hot;
  45.         }
  46.         if (hot== "yes"){
  47.             cout<< "1.Tea?, 2.Coffee?, 3.Cocoa?"<<endl;
  48.             cin>> drinks;
  49.             if(drinks == 1){
  50.                 cout << "Have tea."<<endl;
  51.             }
  52.             else if(drinks == 2){
  53.                 cout << "Have coffee."<<endl;
  54.             }
  55.             else if(drinks == 3){
  56.                 cout << "Have cocoa."<<endl;
  57.             }
  58.         }
  59.         if(hot== "no"){
  60.             cout << "Recreational activity?"<<endl;
  61.             for(i=0; i<=7; i++){
  62.                 cout << "Tell me one of your interests."<<endl;
  63.                 cout << "Do I share that interest(yes or no)?"<<endl;
  64.                 cin >> interest;
  65.                 if (i==7 && interest== "no"){
  66.                     cout << "Choose least objectional interest."<<endl;
  67.                     cout << "Partake in interest."<<endl;
  68.                 }
  69.                 if(interest== "yes"){
  70.                     i = 8;
  71.                     cout << "Why don't we do that togehter?"<<endl;
  72.                     cout << "Partake in interest." <<endl;
  73.                 }
  74.             }
  75.         }
  76.         cout<< "Begin friendship!"<<endl;
  77.  
  78.  
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement