I am very new to programming as I am in my first semester. I am working on a project and am already having issues from the very beginning. I have a very simple problem that I hope someone will be nice enough to figure out for me. This code will run but when the console opens all it says is press any key to continue. Here it is:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
int main ()
void Instructions ()
printf("Hello, and welcome to the letter guessing game./n");
printf("You will be allowed up to five guesses, depending on how many you wish to play./n");
printf("The goal is simple; just keep guessing different letters until you choose the correct letter!/n");
printf("If the correct letter is chosen, the game is over and you have won!/n");
printf("If you fail to choose the correct letter, I will inform you of your loss after the last guess./n");
printf("Okay, now lets begin your endless fun of guessing letters!/n");
Probably a very simple fix that I am just not seeing at this point :/
I would really appreciate it if anyone could provide some insight! Thanks yall.
You never provide a function call with it's return type, otherwise, it would be interpreted as a function declaration.
I'm surprised your compiler didn't bark at you, whatever. You might want to add a function declaration before main() in global scope.