Home c++ Identifier not found C++, how to fix?

Identifier not found C++, how to fix?




I declare FIGHT after Dragonattack, because in the first I use the second function, but I also need to be used in the second first. How to record it right? If I call the function without declaring it, writes “Identifier not found!”

Answer 1, Authority 100%

Yes, just announce

int fight ();

Somewhere in front of Dragonattack .

Hopefully, you will not have infinite recursion? …

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions