|
-
Mar 21st, 2003, 10:10 AM
#1
Thread Starter
Frenzied Member
Graph plotting
I am programming a graph plotter, and I have set up the coordinate system and plotted a function by entering the code in the program....but how would it be possible to plot a function that I enter in an edit box in a dialog....fx: 2*x+1 ????
-
Mar 21st, 2003, 10:44 AM
#2
Frenzied Member
hmm you'd have to write an expression parser for that I think.
I've read a book (C++ the complete reference (4th edition)) which contains code for a simple expression parser.. their code is freely available online:
http://www.osborne.com/products/0072...26803_code.zip
it's the last appendix..
I don't think it's the most effecient code, but this should help you out a bit I guess.
Do a search on google if you need more info.
Good luck!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Mar 21st, 2003, 11:59 AM
#3
Thread Starter
Frenzied Member
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|