Basically, you need input from the player (like moving the character around with a keyboard), game logic (like controlling enemies), and graphics. There's lots of information all around the 'net on all of this stuff, whether you're going to write a nice old DOS game using <xxxio.h> and VGA...
You need to input the expression as a string, parse the string (seperate it into the first number, operator, and second number), and then perform that operation on the numbers.<br><br>Inputting the string is simple. When you have it, find the position of the operator in the string, save that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.