Well, I'm working on making a sort of "Map" program, which will basically function as a grid. My plan was to use a MapSquare class to hold information on the square, and use a MapList class to link them together, sort of like a Linked List, but multi-directional (NSEW)
1> main.cpp
1>c:\castle\maplist.h(9): error C2236: unexpected 'struct' 'mapList'. Did you forget a ';'?
1>c:\castle\maplist.h(9): error C2143: syntax error : missing ';' before '{'
1>c:\castle\maplist.h(9): error C2447: '{' : missing function header (old-style formal list?)
1>c:\castle\maplist.h(18): error C2143: syntax error : missing ';' before '*'
1>c:\castle\maplist.h(18): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\castle\maplist.h(18): error C2065: 'spot' : undeclared identifier
1>c:\castle\maplist.h(18): error C2275: 'mapSquares' : illegal use of this type as an expression
1> c:\castle\mapsquares.h(5) : see declaration of 'mapSquares'
1>c:\castle\maplist.h(18): error C2146: syntax error : missing ')' before identifier 'toAdd'
1>c:\castle\maplist.h(18): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\castle\maplist.h(18): error C2078: too many initializers
1>c:\castle\maplist.h(18): error C2275: 'mapSquares' : illegal use of this type as an expression
1> c:\castle\mapsquares.h(5) : see declaration of 'mapSquares'
1>c:\castle\maplist.h(18): error C2059: syntax error : ')'
1>c:\castle\maplist.h(19): error C2143: syntax error : missing ';' before '{'
1>c:\castle\maplist.h(19): error C2447: '{' : missing function header (old-style formal list?)
1>c:\castle\maplist.h(30): error C2143: syntax error : missing ';' before '*'
1>c:\castle\maplist.h(30): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\castle\maplist.h(30): error C2086: 'int mapList' : redefinition
1> c:\castle\maplist.h(18) : see declaration of 'mapList'
1>c:\castle\maplist.h(30): error C2065: 'spot' : undeclared identifier
1>c:\castle\maplist.h(30): error C2275: 'mapSquares' : illegal use of this type as an expression
1> c:\castle\mapsquares.h(5) : see declaration of 'mapSquares'
1>c:\castle\maplist.h(30): error C2146: syntax error : missing ')' before identifier 'toAdd'
1>c:\castle\maplist.h(30): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\castle\maplist.h(30): error C2078: too many initializers
1>c:\castle\maplist.h(30): error C2275: 'mapSquares' : illegal use of this type as an expression
1> c:\castle\mapsquares.h(5) : see declaration of 'mapSquares'
1>c:\castle\maplist.h(30): error C2059: syntax error : ')'
1>c:\castle\maplist.h(31): error C2143: syntax error : missing ';' before '{'
1>c:\castle\maplist.h(31): error C2447: '{' : missing function header (old-style formal list?)
1>c:\castle\maplist.h(42): error C2143: syntax error : missing ';' before '*'
1>c:\castle\maplist.h(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\castle\maplist.h(42): error C2086: 'int mapList' : redefinition
1> c:\castle\maplist.h(18) : see declaration of 'mapList'
1>c:\castle\maplist.h(42): error C2065: 'spot' : undeclared identifier
1>c:\castle\maplist.h(42): error C2275: 'mapSquares' : illegal use of this type as an expression
1> c:\castle\mapsquares.h(5) : see declaration of 'mapSquares'
1>c:\castle\maplist.h(42): error C2146: syntax error : missing ')' before identifier 'toAdd'
1>c:\castle\maplist.h(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\castle\maplist.h(42): error C2078: too many initializers
1>c:\castle\maplist.h(42): error C2275: 'mapSquares' : illegal use of this type as an expression
1> c:\castle\mapsquares.h(5) : see declaration of 'mapSquares'
1>c:\castle\maplist.h(42): error C2059: syntax error : ')'
1>c:\castle\maplist.h(43): error C2143: syntax error : missing ';' before '{'
1>c:\castle\maplist.h(43): error C2447: '{' : missing function header (old-style formal list?)
1>c:\castle\maplist.h(54): error C2143: syntax error : missing ';' before '*'
1>c:\castle\maplist.h(54): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\castle\maplist.h(54): error C2086: 'int mapList' : redefinition
1> c:\castle\maplist.h(18) : see declaration of 'mapList'
1>c:\castle\maplist.h(54): error C2065: 'spot' : undeclared identifier
1>c:\castle\maplist.h(54): error C2275: 'mapSquares' : illegal use of this type as an expression
1> c:\castle\mapsquares.h(5) : see declaration of 'mapSquares'
1>c:\castle\maplist.h(54): error C2146: syntax error : missing ')' before identifier 'toAdd'
1>c:\castle\maplist.h(54): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\castle\maplist.h(54): error C2078: too many initializers
1>c:\castle\maplist.h(54): error C2275: 'mapSquares' : illegal use of this type as an expression
1> c:\castle\mapsquares.h(5) : see declaration of 'mapSquares'
1>c:\castle\maplist.h(54): error C2059: syntax error : ')'
1>c:\castle\maplist.h(55): error C2143: syntax error : missing ';' before '{'
1>c:\castle\maplist.h(55): error C2447: '{' : missing function header (old-style formal list?)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
You need to define your member functions within your class (struct in this case.) You also need a constructor. That should help get rid of a lot of errors.
Even though I started with C++ before any other language I still make that mistake sometimes, it's common because it's one of the only places you need to put a semicolon after the scope end brace.