When answered with the first question, if you put in 1962, for example, it comes up with "Close but its 1969" instead of "Wrong, it 1969".
In fact, putting anything, including the 1969, which is the right answer, still outputs "Close but its 1969".
#include <iostream>
#include <vector>
#include <cmath>
#include <ctime>
#include <list>
#include <unistd.h>
using namespace std;
void Neil_Question_year(){
double Neil_year_answer;
std::cout << "Welcome to questionaire game." << endl;
usleep(1500000);
std::cout << "Starting off with Neil...";
usleep(2000000);
std::cout << "\nWhat year was he born?: ";
std::cin >> Neil_year_answer;
if (Neil_year_answer == '1969')
{
cout << "\nSeems about right.";
}
else if (Neil_year_answer == '1968' or '1967' or '1970' or '1971'){
cout << "\bClose but its 1969.";
}
else if(Neil_year_answer != '1968' or '1967' or '1970' or '1971')
cout << "\bWrong, its 1969.";
}
void Neil_Question_month(){
usleep(180000);
std::cout << "\nNext question....";
usleep(1000000);
std::cout << "\nStarting in 5..." << endl;
usleep(1000000);
std::cout << "Starting in 4..." << endl;
usleep(1000000);
std::cout << "Starting in 3..." << endl;
usleep(1000000);
std::cout << "Starting in 2..." << endl;
usleep(1000000);
std::cout << "Starting in 1...\n" << endl;
usleep(1000000);
std::cout << "\bWhat month was he born in?";
}
int main(){
Neil_Question_year();
Neil_Question_month();
}