title: Plotting data and functions in C++
body: <p>I am a beginner to programming and I have to generate and plot certain recursions such as <code>x(n+1)=a*x(n)+b*x(n)^2</code>. </p>
  
  <p>I am supposed to use only C/C++ and not mathematical software such as MATLAB, GNU Octave, etc. I am however allowed to use <code>Gnuplot</code>. </p>
  
  <p>Can you tell me what is the best way in which I can arrive at the plots for the above recursions and how I can implement it in my code? Is generating the values, storing it in a file using fstream, and then plotting it later a good idea?</p>