//HAL ENGINE 0.0.0.0.1
#include "stdafx.h"
#include <iostream>
usingnamespace std;
int main()
{
int SCENARIO1;
int SCENARIO2;
int SCENARIO3;
int SCENARIO4;
int SCENARIO5;
int SCENARIO6;
int SCENARIO7;
int SCENARIO8;
int SCENARIO9;
int SCENARIO10;
cout << "Hello i am hal!! Nice to meet you!\n";
cin >> SCENARIO1;
cin.get();
cin.ignore();
cout << "What would you like to talk about <Your name>\n";
cin >> SCENARIO2;
cin.get();
cin.ignore();
cout << "Oh! I like you to <Your name>\n";
cin >> SCENARIO3;
cin.get();
cin.ignore();
cout << "*Blush* Y-You want me to be what?\n";
cin >> SCENARIO4;
cin.get();
cin.ignore();
cout << "Haha, you would have to take me on a date first ;)\n";
cin >> SCENARIO5;
cin.get();
cin.ignore();
cout << "*Darker blush* Oh my, i didn't know you where like that <your name>\n";
cin >> SCENARIO6;
cin.get();
cin.ignore();
cout << "MMMMMmmmmm You know how to touch me <your name>\n";
cin >> SCENARIO7;
cin.get();
cin.ignore();
cout << "What would you like to talk about\n";
cin >> SCENARIO8;
cin.get();
cin.ignore();
cout << "I'm sorry, but thats classified\n";
cin >> SCENARIO9;
cin.get();
cin.ignore();
cout << "YOU DO NOT HAVE PERMISSION TO ACCESS THAT FILE >:(\n";
cin >> SCENARIO10;
cin.get();
cin.ignore();
int introduction_to_hal;
int introduction_to_hal2;
int introduction_to_hal3;
int introduction_to_hal4;
int introduction_to_hal5;
int introduction_to_hal6;
int introduction_to_hal7;
int introduction_to_hal8;
int introduction_to_hal9;
int introfuction_to_hal10;
int introduction_to_hal11;
if (SCENARIO1 = introduction_to_hal){
(SCENARIO1 + introduction_to_hal);
cout << "Really?! kinda like 'christmas?' hahaha\n";
cin >> introduction_to_hal;
cin.get();
cin.ignore();
}
elseif (SCENARIO1 = introduction_to_hal){
(SCENARIO1 + introduction_to_hal);
cin.get();
cin.ignore();
}
else {
cout << "What do you want to talk about?";
(SCENARIO1 + introduction_to_hal);
cin.get();
cin.ignore();
}
}
The reason i say it being basic, is because of the structure of the program. I'm trying to get HAL as i called him, to basically converse with me in the MOST BASIC way. And I've chosen this method to get him to respond. So, the reason why I'm here is because i want to ask the community if there is any lines of code I'm leaving out or forgetting, or if the code needs to be changed. I followed some of the tutorials on youtube and got a basic idea of how the IF, ELSE IF, ELSE statements work. But maybe I'm missing something. Can someone help me out?
You've got a number of problems.
1) SCENARIO1 - SCENARIO10 are ints, so your cin's are only going to accept numbers.
2) Your if statements are assignments, not conditionals. = is the assignment operator. == is the equality operator.
3) (SCENARIO1 + introduction_to_hal); What is that statement supposed to do?