Ex 07 08 of Beginning Visual C++ 2005 ERROR
The example EX 07 08 will not compile I get the message : -
c:\documents and settings\hp_owner\my documents\visual studio 2005\projects\aaa_07_08\aaa_07_08\main_07_08.cpp(2 9) : error C2628: 'CBox' followed by 'double' is illegal (did you forget a ';'?)
even when i use Ivor Horton's downloaded version.
This relates to the line :
friend double BoxSurface(CBox aBox);
Can anyone explain ?
|