Hi everyone... Since i cannot delete the old thread, and it's a little bit of a different question related, i wanted to create a new one.
Anyway, someone's said, that i shouldn't use functions as I'm using them. I wanted to put every bit of code into different. Like game loop with all the logic calculations into one header file and function, menu and it's logic into another, etc.
But now I'm a little bit confused, as i was told, that i shouldn't put game logic into header files, i should put it into the main function. So how should i use functions at programming games at all? Header files?