-compiling C:"The location basically"
!project2.cpp(32,1) lvalue required
!project2.cpp(33,1)pointer to structure required on left side of -> or ->*
!project2.cpp(36,1)declaration terminated incorrectly
yea this wont compile.
for starters you're using cout with a std:: or having a using directive near the top of the file. (and you need to include iosteam and not iostream.h)
At line 31, you're declaring a function called r, that returns a pointer to a kid. The compiler warning for line 32 indicates that you're trying to use a function name as a variable whose value can be set.
The compiler warning for line 33 is for much the same reason - you're trying to use a function name as a pointer variable.
The main function is supposed to return an int, indicating any error status. This allows the operating system to detect the exit status of the application.