Bare Minimum Add/Sub Calculator

closed account (yqGNwA7f)
I am trying to make a BARE MINIMUM add and subtract ONLY calculator that compiles directly into machine code, no .NET or anything. I am using wxDev-C++ so I hope that is the correct IDE, and default compiler. I want a calculator that only uses two variables, the first number and the second number. The reason I want this is 1. Extreme OCD with speed and STANDARD. 2. I can't figure out the STANDARD pause (i.e. NOT system())

I need it to be WINDOWS specific.

If anyone can help me, or provide me with code, I'd greatly appreciate it, everything I find is system(), and I HATE non standard! If no one can help me, that is fine, just please excuse my ignorance of this amazing language. :)

Specific things needed:
Console Title (I know not bare minimum, this is only exception)
PAUSE (standard method)
Add/Sub
Two variables
Windows specific
All ANSI
Last edited on
For windows you can use Sleep(milliseconds); for pause. See http://msdn.microsoft.com/en-us/library/windows/desktop/ms686298%28v=vs.85%29.aspx
Topic archived. No new replies allowed.