I am a noob at programming. I just wanted to ask what is wrong with the following code:
scanf(\"%i\", &battlechoice); printf(\"BCHOICE WAS:%i\\n\", batt
you are writing if(battlechoice=4) correct it with if(battlechoice==4)
because '=' and '==' operators both are different
'=' is Assignment Operator and '==' is comparison operator
see the link for operators in C http://www.tutorialspoint.com/cplusplus/cpp_operators.htm