i can move the code around and make the 'q' a number 10 or i could use the switch case itd be much easier but i wanna struggle with if statements for now. Why wouldnt the appointed line work? why why?
Code:// TheMenuConSuitchCais.cpp : Defines the entry point for the console application. #include "stdafx.h" #include "stdio.h" #include "stdlib.h" void desicionTime (void); int main() { for(;;) { char input; int choice; char choicee; printf("\n\n 0. PreLab\n"); printf(" 1. The Menu\n"); printf(" 2. Switch Case\n"); printf(" 3. Random\n"); printf(" 4. Conversion\n"); printf(" 5. Game of Chance\n"); printf(" 6. Function Gnenerator\n"); printf(" 7. Attributes Menu\n"); printf(" 8. Resistor Color Code\n"); printf(" 9. Regression Line Crap\n"); printf(" q. Press q to quit: \n\n"); printf(" Choose an option and press enter please:"); scanf(" %d", &choice) || scanf(" %c", %choicee); /*<-----WHY WOULDNT THIS LINE WORK?*/ if (choice==10) { break; } if (choicee==q) { system("cls"); desicionTime(); } } return (0); }