int main(int argc, char *agr[]) { int command; do { printMenu(); printf("command = "); scanf("%d", &command); switch(command) { case 0: break; case 1: break; case 2: testDerivative(); break; case 3: //jniJLexerGetSpace(); testGetSpaces(); break; case 4: testCalculate(); break; } //testReduce(f); //testDerivative(f); // fflush(stdin); // printf("Filename: "); // fgets(str, 128, stdin); //testCalculate(f); //testReuseFunction(f); //testCriteria2(f); }while(command != 0); return 0; }
void chooseTest(int input){ if (input==1){ testLow(); } else if (input == 2){ testHigh(); } else if (input == 3){ testDerivative(); } else if (input == 4){ testSquaring(); } else if (input == 5){ testMWI(); } printf("Please enter your choice of test.\n Press 1 for Low test, 2 for hightest, 3 for Deri, 4 for Square, 5 for MWI\n"); scanf("%d", &input); chooseTest(input); }