From fd3a333e13b6fb8586d71615c4c98ed786c7f6be Mon Sep 17 00:00:00 2001 From: "Sebastian Rios Duque (riosduques)" Date: Thu, 30 Jun 2022 23:41:32 +0100 Subject: [PATCH] Delete main.cpp --- main.cpp | 160 ------------------------------------------------------- 1 file changed, 160 deletions(-) delete mode 100644 main.cpp diff --git a/main.cpp b/main.cpp deleted file mode 100644 index 26ec02d..0000000 --- a/main.cpp +++ /dev/null @@ -1,160 +0,0 @@ -#include -using namespace std; -#include -#include -#include -#include - -int g; -int main() -{ - label1: - cout<< "welcome to the game of maths you will be asked a series of questions and try to get as far as you can.\n you have three lives\n What is your name"<> playername; - int health = 3; - - while(health > 0) - { - - srand(time(0)); // Initialize random number generator. - - for(int i=0;i<1;i++) // number can be changed depending on how many questions - { - g =(rand() % 5) + 1; - - - string answer; - - if(g == 1) - { - cout<<"what is 5 x 5"<> answer; - if(answer == "25") - { - //SetConsoleTextAttribute(hConsole,2) - cout<<"Correct"<> answer; - if(answer == "30") - { - //SetConsoleTextAttribute(hConsole,2) - cout<<"Correct"<> answer; - if(answer == "35") - { - //SetConsoleTextAttribute(hConsole,2) - cout<<"Correct"<> answer; - if(answer == "40") - { - //SetConsoleTextAttribute(hConsole,2) - cout<<"Correct"<> answer; - if(answer == "45") - { - //SetConsoleTextAttribute(hConsole,2) - cout<<"Correct"<> response; - if(response == "yes") - { - goto label1; - } - else - { - return 0; - } - - - return 0; - -} \ No newline at end of file