title: How to draw functions in C++
body: <p>I would like to create charts of functions in C++. Can anyone help me in getting started ?
  Let's suppose I want to draw the function y=x ( it is a straight line passing through the points (0,0) (1,1) (2,2) ..... (20,20) etc. )
  How could I do it ? ( If you also suggest how to draw the y &amp; x axes it is even better )
  Sorry but it is not on books ( good texts recommendations are welcome, by the way :-) C++ ) and on the net there are references mainly to game graphics. 
  The only serious reference to my problem I was able to find is this:
  <a href="https://stackoverflow.com/questions/9014685/c-how-to-draw-a-tone-curve-gamma-to-graph-using-setpixel-function">somewhat related question asked in this very forum</a>  ( God bless, we have stackoverflow ! )</p>