title: How do you set the contents of a dynamically allocated array?
body: <p>i am a bit confusing about how to assign global pointer and giving value in main 
  function??</p>
  
  <p>for example, here my code example </p>
  
  <pre><code>bool *list;
  int main()
  {
    list=new bool[7];    
    //i want to auto add a value but how, is that below code is correct??
    list={true,false,true,true,true,true};
  }
  </code></pre>
  
  <p>i try with bloodshed c++
  sorry for my bad English.</p>