So I want to learn C and continue going up to higher level programming languages. I thought the best way to do this would be to start game development because it's very difficult and you know you know the language when you have a fully functional game. I'm starting off just doing a text game. Just to get the basics and the jist of it all. My question is am I coding the options and cases correctly. I'm not going to post the in depth text but here is the way I did it. If it helps you can input your own variables into the 1,2,3 spots.
Code:#include <stdio.h> void 1(){ void 1(){ } void 2(){ } void 3(){ } int input2; printf("Text"); scanf("%d", &input2); switch(input2){ case 1: 11(); break; case 2: 12(); break; case 3: 13(); break; } } void 2(){ printf( "Text"); } void 3(){ printf( "Text"); } int main(){ int input1; printf( "Text"); scanf( "%d", &input1); switch(input1){ case 1: 1(); break; case 2: 2(); break; case 3: 3(); break; case 4: printf( "Text"); break; default: printf( "Text"); 1(); break; } scanf("%d"); getchar(); }