Send Telegram | Buy Shares | Carcasherdotcom Seocontest | Electricity Suppliers | Mortgage Calculator
c++ : polymorphism help, i think [Archive] - PCMech Forums

PDA

View Full Version : c++ : polymorphism help, i think


GSXdan
11-24-2003, 04:29 PM
what could cause these errors??


lab7a.cpp:19: parse error at end of input
board.cpp:5: cannot declare member function `hall::eatery::board::board' within
`hall::eatery'
board.cpp:40: cannot declare member function `hall::eatery::board::play' within
`hall::eatery'
board.cpp:84: cannot declare member function `hall::eatery::board::preturn' with
in `hall::eatery'
board.cpp:111: cannot declare member function `hall::eatery::board::removeplayer
' within `hall::eatery'
board.cpp:128: parse error at end of input
In file included from square.cpp:3:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/iom
anip.h:33: parse error before string constant
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/iom
anip.h:49: syntax error before `operator'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/iom
anip.h:51: missing ';' before right brace
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/iom
anip.h:54: parse error before `&'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/iom
anip.h:54: `hall::operator >>(...)' must take exactly one argument
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/iom
anip.h:54: confused by earlier errors, bailing out

i dont have iomanip included, so i dont know what could be causing the last errors.


what could the problem be?

thanks

GSXdan
11-24-2003, 09:11 PM
anyone???

doctorgonzo
11-25-2003, 10:13 AM
Check to make sure that your brackets are in the right place. I am getting strange errors.

GSXdan
11-25-2003, 10:45 AM
Yea i found i had a couple parentheses instead of brackets where i was inlining a couple functions. That seemed to fix it.

THanks

HNPFL
11-30-2003, 11:19 PM
God Darn Syntax. I've been there.