title: quick vector initialization c++
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/2236197/c-easiest-way-to-initialize-an-stl-vector-with-hardcoded-elements">C++: Easiest way to initialize an STL vector with hardcoded elements</a><br>
    <a href="https://stackoverflow.com/questions/2114358/using-stl-allocator-with-stl-vectors">Using STL Allocator with STL Vectors</a>  </p>
  </blockquote>
  
  
  
  <p>out of curiosity  i want to know quick ways of initializing vectors </p>
  
  <p>i only know this </p>
  
  <pre><code>double inputar[]={1,0,0,0};
  vector&lt;double&gt; input(inputar,inputar+4);
  </code></pre>