title: C++ arrays with unknown size
body: <p>I'm trying to implement a program which gives you a sequence with a determined start, end and base, problem is that i cannot determine what will be the number of elements</p>
  
  <p>this is my code for a simple arithmetic progression generator</p>
  
  <pre><code>float Arithmetic_squence[](float start, float end, float b) {
    float result[];
    float last_number = start;
    while (last_number &lt;= (end - b)) {
      result[sizeof(result)] = last_number;
      last_number += b;
    }
  }
  </code></pre>
  
  <p>it won't compile because it wants a size</p>
  
  <p>i also want the code as simple as possible so i wish i won't have to implement a non-efficient, time consuming linked list</p>
  
  <p>i also don't know how to deal with vectors, maybe if there's a quick guide i may use it</p>