Original Post
Looking at the example code, I''m trying to make a few changes and have no clue how to do it.
Basicaly, this is a CLI (Command Line Interface) Calculator. You punch in an equation and it spits out an answer.
I''m trying to get it to store calculations as well as print them out in numerical order according to their result, like so:
2 + 1= 1+1+2= 4 * 4= ^D 2 + 1 = 3 1 + 1 + 2 = 4 4 * 4 = 16Answers aren''t printed out until ^D (EOF) has been reached. I''m just having problems doing those last few things with the code I have. Any help is appreciated. Download example source: http://forums.extremeoverclocking.com/attachment.php?attachmentid=32848