cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
graphs in xy - axis
graphs in xy - axis
Dec 26, 2010 at 9:54pm UTC
centifnel
(1)
i have to write a code to display the graph for function y=x*x in xy - axis
any ideas? :P
Last edited on
Dec 26, 2010 at 9:56pm UTC
Dec 27, 2010 at 11:27am UTC
hamsterman
(4538)
get a graphics library. sfml for example.
then for(float x = graph_left; x < graph_right; x += a_little) draw_a_point(x, x*x);
lines would be better, of course, but you can figure those out yourself.
Topic archived. No new replies allowed.