By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,191 Members | 803 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,191 IT Pros & Developers. It's quick & easy.

How to start writting a code for exprssion ADT?

P: 24
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.
Oct 4 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.