title: Correct way of initializing a struct in a class constructor
body: <p>So I want to add a struct from a c header file as a class member to a c++ class.
  But I get a compiler error for the <code>cpp</code> file: <code>bar was not declared inn this scope</code>.
  This is what I have:</p>
  
  <pre><code>//    myClass.hpp
  #include fileWithStruct.h
  
  class myClass
  {
      public:
          struct foo bar;
  };
  
  
  //myClass.cpp
  
  #include "myClass.hpp"
  
  //Initialize structure in Constrcutor
  myClass::myClass(  )
  {
      bar = {1, 0, "someString", 0x4};
  }
  </code></pre>