title: Create multiple Objects without multiple declarations
body: <p>I am trying to do a routine <code>Init_buffer</code> (which create a new buffer to new a new client). So far I only discovered this way (in pseudo-code):</p>
  
  <pre><code>//Globally
  BufferClass buffer1('some_random_size');
  BufferClass buffer2('some_random_size');
  BufferClass buffer3('some_random_size');
  (...)
  //Binary data (chunck) from Nodejs Server
  void buffering_mem(char* chunk, int size_chunk, int close_file,
                     int client, int total_size) {
    if(client == 0) {
      buffer1.write(chunk,size_chunk);
    }
    else if(client == 1) {
      buffer2.write(chunk, size_chunk);
    }
    (...)
  }
  </code></pre>
  
  <p>Now I want to do the whole process without the repetition of code. Any ideas?</p>