title: C++ Zero-out a struct array?
body: <pre><code>struct OBJECT
  {
  unsigned int Var1;
  std::string Str1;
  ...
  bool YesNo;
  };
  
  OBJECT Obj[ 327 ];
  </code></pre>
  
  <p>I am confused about how to zero-out Obj. It has several different type of elements. Do I have to set all of its member to 0?
  Like... <code>Obj[0].Str = "";</code>
  ? So the question is, what is the proper way of doing it?</p>
  
  <p>My attempt:</p>
  
  <pre><code>::memset( &amp;Obj, 0, sizeof( Obj ) );
  </code></pre>
  
  <p>I am not sure if I am doing it correctly...</p>
  
  <p>Oh and are there any faster way to zero-out an array?</p>