Well, I have create a calculator project and I have a little problem here.. I don't need a solution ( and I will not post my code, if you help to see my code please let me know and I will post it ) I just need for advice.. the calculator has a lot of operators ( +,-,*,/,^,>,<,clear sum ) the the program works fine but I have a problem to save the result of operator... For example the user select to addition ::: 5-3 =2 the program will store and return the total ( 2 ) from the function and will added to another.. So lets say that the user after the addition select sum, 5+5= 10 (2)+ == 12, I have done this for any operator ONE function but it's confused to me and other people that they read them ( plus is very big program ) so, I decided to make only TWO functions and put it all together... My question now... is any way to return a value from void* ?? or to store somewhere and after the user makes other operator to added the saver value on it?? Basically thats happen all over the time until the user clear the sum.... Please let me know if you have any ideas and it's better to determ the problem alone, doesn't matter to post my code and fixed it!!! But if that helps you I will do!!!
I am not sure you really need void *. Since you don't post any code just assumptions can be made.
You want or not this feature to exist: 5+5 =10 (2)+ = 12 (3)+ = 15 etc?
Also how do you perform this?
User enters 5 then presses enter
then + then enter
then 5 then enter?
chooses a menu: 1 for +, 2 for - etc
and then enters numbers?