title: Passing a struct as a constructor parameter in C++
body: <p>I've looked as best I can and can't find much on this particular topic. I have to take a large number of variables, maybe for more than one object and pass them through a set of functions so I think this is the best way to do it. </p>
  
  <p>I'd like to pass a struct to a constructor for a class where the struct is not defined. Is this possible? My code looks something like this:  </p>
  
  <pre><code>class myClass
  {
  protected:
     double someVar;
     .
     .
  public:
     myClass(struct structName);  //compiler is ok with this
     myClass();                   //default construct
  };
  
  struct structName
  {
     double someOtherVar;
     .
     .
  };
  
  myClass::myClass(??????)  ///I don't know what goes here
  { 
    someVar = structName.someOtherVar; ///this is what I want to do
  } 
  </code></pre>
  
  <p>EDIT: Am I supposed to declare a struct in the class and use that struct as the parameter?</p>