Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \*
- * Friend.cpp
- *
- * Created on: 16.11.2019
- * Author: lhazi
- */
- #include "Friend.h"
- #include<iostream>
- #include<string>
- using namespace std;
- int main(){
- //Variables
- string n = "n";
- string res = "res";
- string hot = "hot";
- string interest = "interest";
- int drinks,i;
- Home: cout << "Place phone call." <<endl; //place phone call
- cout << "Home?(yes or no)" <<endl;
- cin>> n;
- if(n== "yes" || n== "no"){
- if(n=="yes"){
- 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;
- }
- }else{
- goto Home;
- }
- Resp: cout << "What is the response(yes or no):?" <<endl;
- cin>> res;
- if(res== "yes" || res== "no"){
- if(res== "yes") {
- cout << "Dine together."<<endl;
- }
- if(res== "no"){
- Bev: cout << "Do you enjoy a hot beverage?"<<endl;
- cout << "What is the response?(yes or no)"<<endl;
- cin >> hot;
- }
- }else{
- goto Resp;
- }
- if(hot== "yes" || hot== "no"){
- if (hot== "yes"){
- Hot: cout<< "1.Tea?, 2.Coffee?, 3.Cocoa?"<<endl;
- cin>> drinks;
- if(drinks == 1){
- cout << "Have tea."<<endl;
- }
- else if(drinks == 2){
- cout << "Have coffee."<<endl;
- }
- else if(drinks == 3){
- cout << "Have cocoa."<<endl;
- }
- else{
- goto Hot;
- }
- }
- if(hot== "no"){
- cout << "Recreational activity?"<<endl;
- for(i=0; i<=7; i++){
- Inte: cout << "Tell me one of your interests."<<endl;
- cout << "Do I share that interest(yes or no)?"<<endl;
- cin >> interest;
- if(interest== "yes" || interest== "no"){
- if (i==7 && interest== "no"){
- cout << "Choose least objectional interest."<<endl;
- cout << "Partake in interest."<<endl;
- }
- else if(interest== "yes"){
- i = 8;
- cout << "Why don't we do that togehter?"<<endl;
- cout << "Partake in interest." <<endl;
- }
- } else{
- goto Inte;
- }
- }
- }
- } else{
- goto Bev;
- }
- cout<< "Begin friendship!"<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement