Hi all,
I got an assignment to create a ADT and testcase in C for user to enter the expression. From the expression, i should be able to convert to string, and from string to expression and also to evaluate the value when X value is given.
Eg of expression can be as follow
x^3+x+4
(4+3)(5-2)(29+3)
((4+1)(5-2)) * (34-4)
which can involve + , - , * , / , ^ , ()
I really got no idea on how to start trying the program as i am very new to C programming, hope that you guys will able to guild me through thank.
I got an assignment to create a ADT and testcase in C for user to enter the expression. From the expression, i should be able to convert to string, and from string to expression and also to evaluate the value when X value is given.
Eg of expression can be as follow
x^3+x+4
(4+3)(5-2)(29+3)
((4+1)(5-2)) * (34-4)
which can involve + , - , * , / , ^ , ()
I really got no idea on how to start trying the program as i am very new to C programming, hope that you guys will able to guild me through thank.