calculating inside strings
#1

Ok today i got pwned by pawn when i din`t knew how to make universal calculator like i enter string "(5+5)/2" and placing it into
Код:
answer=string
in my eyes that should look
Код:
answer=(5+5)/2
but it looked a way different, so have anyone any sugestions how to calculate string it can by step b step method like "chose: symbol or number ", "select symbol", "symbol added" and so on, hope you understand me and thanks in advance
step by step i mean that i pick number:
Код:
formula=15
then pick symbol +-*/ () sqrt this time (
Код:
formula=15(9
then symbol *
and then 9
and lastly )
i press finish
and i get answer to that one formula
Код:
formula=15(9*9)
Reply
#2

ok.. that's impossible, last bump
Reply
#3

Woah... can explain more.. simple?
Reply
#4

i want to make program wich works any way or step by step but it should do that if you enter any matematical formulait solve it by reading inputing it or by putting formula step by stem as i xplained before
Reply
#5

With a few words... You want a math system for your server?
Reply
#6

Not in server i'm making c program math homeork maker for my brother i made lots formulas equations discriminants and so on, and if i'll learn how to manke in server i'll transfer it to c. why not in C forums? i'm banned from them , so any ideas,
Reply
#7

now i beleave that's possible dont give me hopes (replies) and i wont bump it
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)