View Single Post
  #1 (permalink)  
Old June 13th, 2007, 10:34 PM
shade cat shade cat is offline
Registered User
 
Join Date: May 2007
Location: , CA, .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default CH 9 error code city

Ex9_01
My code matches the book and 571974 file yet here is what I get.

1>------ Build started: Project: Ex9_01, Configuration: Debug Win32 ------
1>Compiling...
1>Ex9_01.cpp
1>c:\aaaaaa\visual studio\ex9_01\ex9_01\candybox.h(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\aaaaaa\visual studio\ex9_01\ex9_01\candybox.h(13) : warning C4183: 'CCandyBox': missing return type; assumed to be a member function returning 'int'
1>c:\aaaaaa\visual studio\ex9_01\ex9_01\candybox.h(14) : error C2523: 'CCandybox::~CCandyBox' : destructor tag mismatch
1>c:\aaaaaa\visual studio\ex9_01\ex9_01\ex9_01.cpp(13) : error C2065: 'CCandyBox' : undeclared identifier
1>c:\aaaaaa\visual studio\ex9_01\ex9_01\ex9_01.cpp(13) : error C2146: syntax error : missing ';' before identifier 'myCandyBox'
1>c:\aaaaaa\visual studio\ex9_01\ex9_01\ex9_01.cpp(13) : error C2065: 'myCandyBox' : undeclared identifier
1>c:\aaaaaa\visual studio\ex9_01\ex9_01\ex9_01.cpp(14) : error C2146: syntax error : missing ';' before identifier 'myMintBox'
1>c:\aaaaaa\visual studio\ex9_01\ex9_01\ex9_01.cpp(14) : error C3861: 'myMintBox': identifier not found
1>c:\aaaaaa\visual studio\ex9_01\ex9_01\ex9_01.cpp(20) : error C2070: ''unknown-type'': illegal sizeof operand
1>c:\aaaaaa\visual studio\ex9_01\ex9_01\ex9_01.cpp(22) : error C2070: ''unknown-type'': illegal sizeof operand
1>Build log was saved at "file://c:\AAAAAA\Visual Studio\Ex9_01\Ex9_01\Debug\BuildLog.htm"
1>Ex9_01 - 9 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Any ideas?