title: C++ Bubble sort
body: <p>I may just be having a brain fart, upon doing the bubble sort algorithm, of course, I encountered a problem. Any help will be golden.  The problem is to do with the "float numbers[n];" and the "std:string c;".</p>
  
  <pre><code>int n = 0;
  cout &lt;&lt; "Enter value of N: ";
  cin &gt;&gt; n;
  
  float numbers[n];
  
  cout &lt;&lt; "You will enter " &lt;&lt; n &lt;&lt; " numbers." &lt;&lt; endl;
  for (int i = 0; i &lt; n; i++) {
  std:string c;
      cin &gt;&gt; c;
      numbers[i] = atof(c.c_str());
  }
  </code></pre>