how to include structures as header file : <p>I am trying to create a header file for my structure, but after I created the structure and included it in the main program it gives me error messages.</p>

<p>this is my header file</p>

<pre><code>#pragma once
#ifndef MYSTRUCT_H_INCLUDED
#define MYSTRUCT_H_INCLUDED

struct book{

 int bknum;
 string bname;
 string author;
};

#endif // MYSTRUCT_H_INCLUDED
</code></pre>
