[Solved] Slot Machine in C (gotoxy)
You have infinite loops in all functions. If you enter one function you never return. Consider putting this while in main function. #include <stdio.h> #include <time.h> … int main(){ srand( time(0) ); fnSlotMachine(); while(1) { fnSlot1(); fnSlot2(); fnSlot3(); } } … void fnSlot1(){ Sleep(50); fnGotoXY(5, 9); intSlot1 = rand() % 9; printf(” | %i %i … Read more