 <p>First, classes, enums, and structs are terminated with ';' following the closing bracket (or scope). i.e.</p> <pre><code>struct St { .... };//&lt;--- end of scope terminator </code></pre> <p>Next, what exactly are you trying to do following this bit? I'm guessing you're trying to define cases of it for use, but you're going about it entirely wrong. You need to have a member in the struct to set a value to, this can be an instance of the struct itself. Like this...</p> <pre><code>struct St { St element; }; </code></pre> <p>Then you can set a value to the structs member, but in this particular instance you're probably gonna want some more data members for this sturct to be of any use...</p> <pre><code>struct St { char value; St element; St(char value, St element) // struct constructor : this-&gt;value(value), this-&gt;element(element){} // init list }; </code></pre> <p>Now you can use the struct in the rest of your code simply by calling it by its identifier, which in this case would be 'St'. </p> <p>Although, for what you're trying to achieve (I could be wrong) would be better suited for an enumerated value, which is (basically) a way of defining your own primitive, switchable, variable type. An example of where an enum would be useful would be something like...</p> <pre><code>const int MON = 0, TUE = 1, ....// rather than using "const int's" // define them as enumerations enum Day {MON,TUE,WED,THU,FRI,SAT,SUN}; /*each enum is assigned an integer ordinal that corresponds to its location as it is declared, so MON == 0, TUE == 1, and so on. You can alternatively assign your own value to it in an instance where the default ordinal would not be useful, for instance if you wanted them as characters...*/ enum Foo {Bar = 'B', Qat = 'Q', ...}; // or enum Ratings {PG13 = 13, R = 18, ...}; </code></pre> <p>You would probably benefit from a resource like:</p> <p><a href="http://www.tutorialspoint.com/cplusplus/cpp_references.htm" rel="nofollow">http://www.tutorialspoint.com/cplusplus/cpp_references.htm</a></p> <p>or</p> <p><a href="http://en.cppreference.com/w/" rel="nofollow">http://en.cppreference.com/w/</a></p>