title: Structure prototype?
body: <p>How do I put a struct in a separate file? I can do it with functions by putting the function prototype in a header file e.g. file.h and the function body in a file like file.cpp and then using the include directive #include "file.h" in the source file with main. Can anybody give a simple example of doing the same thing with a structure like the one below? I'm using dev-c++.</p>
  
  <pre><code>struct person{
    string name;
    double age;
    bool sex;
  };
  </code></pre>