1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
|
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
using namespace std;
void emergency(string word);
int main()
{
//Prologue
cout<<"Somebody To Talk To"<<endl;
cout<<"Welcome to S.T.T.T."<<endl;
cout<<"Instructions: Give simple answers. When computer says: Let's change the subject (or something relating to) that means to bring something else up, a.l.a., football, baseball, computers, whatever you want! (just don't capitalize"<<endl<<endl;
system("PAUSE");
system("cls");
//Generates random seed
srand(time(NULL));
//Variables/Strings
string input, output;
int num;
//Begin...
printf("Hello. How are you? \\\n");
cin>>input;
//If in a good mood:
if(input == "good", "great", "awesome", "cool")
{
srand(time(NULL));
num = rand() % 5 + 1;
cout<<"Oh, really? What is going on in your life that is so good?"<<endl;
cin>>input;
switch(num)
{
case 1:
output = "Sounds Great! I love when that happens to me! So, let's change the subject...";
break;
case 2:
output = "That happened to me last week! Let's change the subject...";
break;
case 3:
output = "Oh. Well that is lucky of you. Let's talk about something else...";
break;
case 4:
output = "Awesome... i don't really care. Let's switch topics...";
break;
case 5:
output = "Cool. That's... great... Let's move on to something else...";
}
cout<<output<<endl;
cin>>input;
if(input == "football")
{
srand(time(NULL));
int num = rand() % 5 + 1;
switch(num)
{
case 1:
{
output = "Football? My programmer used to play that... What do you wanna talk about, football related? College? NFL? Your team?";
}
break;
case 2:
{
output = "I always wanted to play football, I don't have legs though... What about football do you want to talk about? College? NFL? Your team?";
}
break;
case 3:
{
output = "Football is stupid. But, if you truly want to talk about it... Go ahead. College? NFL? Your team?";
}
break;
case 4:
{
output = "Football? I HATE FOOTBALL!!!!!!! LET'S CHANGE THIS SUBJECT!!!!!!!";
system("PAUSE");
system("cls");
}
break;
case 5:
{
output = "Oh. Football. I had bad mememories of that. What about football do you want to talk about? College? NFL? Your team?";
}
break;
}
cout<<output<<endl;
cin>>input;
if(input == "college")
{
srand(time(NULL));
int num = rand() % 3 + 1;
switch(num)
{
case 1:
{
output = "I don't like college football that much... Let's talk about something else football related.";
}
break;
case 2:
{
output = "College? What about college? Did he call me stupid? Let's move on to something else football related...";
}
break;
case 3:
{
output = "FUCK YOU!";
system("PAUSE");
system("cls");
}
break;
}
cout<<output<<endl;
cin>>input;
}
}
}
//If in a neutral mood:
else if(input == "eh", "decent", "okay", "been better")
{
cout<<"What happened?"<<endl;
}
//If in a bad/ sad mood:
else if(input == "bad", "terrible", "awful", "sad", "destroyed")
{
cout<<"Awwww, what has happened to you?"<<endl;
cin>>input;
}
//EMERGENCY!!!!!!
else
emergency(output);
}
void emergency(string output)
{
srand(time(NULL));
int wordInt = rand() % 10 + 1;
switch(wordInt)
{
case 1:
{
output = "Ohh...";
}
break;
case 2:
{
output = "...";
}
break;
case 3:
{
output = "Sorry, didn't get that.";
}
break;
case 4:
{
output = "I don't like this topic. Let's move on to something else.";
}
break;
case 5:
{
output = "Ehhh, why did you say that...";
}
case 6:
{
output = "Damn. Sorry bout that. My hearing is REALLY bad. Why don't we just talk about something else";
}
break;
case 7:
{
output = "What is that supposed to mean? You know what? Screw this conversation.";
system("cls");
main();
}
break;
case 8:
{
output = "Uhh... I find that offensive. Change the subject.";
}
break;
case 9:
{
output = "?";
}
case 10:
{
output = "YOU say that to ME?!? You can consider this conversation OVER!";
}
break;
}
}
|