Well, you could start by reading the compiler error messages, they will at least point you to (or near) the places that need fixing.
Read your textbook for the examples of how structures/classes should look - what's the difference compared to your problem?
vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228
The first one is not something we do in something that is strictly a struct. If your text has another section dealing with classes, look at the explanation of a constructor, and how it's implemented. It's a function, but not written exactly like the functions you've written up to this point.
The second one means that there's no way (at the moment) to directly output the contents of your struct. You have to display it one member at a time. This, I'm sure, is covered in your text. (Look for the "dot operator" )
vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228
vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228