Please help me!You would use a if statement
such as pseudo
[code] if y or n or Y or N
else print error[/code].
User-defined functionsThe best functions, do one thing, very simple, very fast, and then can be reused.
Function inside a functionThe way you did it above it will work
Function inside a functionyes
Box2d or cocos2d-x? + cloudinghttp://lmgtfy.com/?q=share+c%2B%2B+code+online