From 77b9886638a47257b1b7e2accd9241ac0b8d61bf Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Mon, 19 Mar 2007 14:34:37 -0700 Subject: Init commit --- timetabletester5.cpp | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100755 timetabletester5.cpp diff --git a/timetabletester5.cpp b/timetabletester5.cpp new file mode 100755 index 0000000..9436b49 --- /dev/null +++ b/timetabletester5.cpp @@ -0,0 +1,70 @@ +#include +#include +#include +#include +#include + + + + + + +using namespace std; + + +int main (int argc, char *argv[]) +{ + +char exit=0; +time_t curtime1,curtime2; +int i=0,num1=0, num2=0, prod=0, num_question,num_c=0, num_w=0; + +printf("The Woofers Math Tester Version 5\n"); +printf("Copyright Woofers Studios 2007\n"); +printf("Made by Nicholas Van Doorn\n"); +printf("Enter answer and press enter\n\n"); +printf("How many questions would you like? "); +cin >> num_question; +printf("Making %d questions\n\n",num_question); +srand((unsigned)time(NULL)); +curtime1 = time (NULL); + +while( (!exit) && (i