graphs in xy - axis

i have to write a code to display the graph for function y=x*x in xy - axis
any ideas? :P

Last edited on
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.