Thread: brock2
View Single Post
Old 12-28-2002, 04:56 PM   #13
ExposFan08
Guest
 
Posts: n/a
Quote:
Originally posted by cougar
I get this when I compile with MS Visual C++ 6:

Compiling...
brock2.cpp
C:\Documents and Settings\default\My Documents\C++\brock2.cpp(51) : error C2065: 'value' : undeclared identifier
C:\Documents and Settings\default\My Documents\C++\brock2.cpp(52) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
C:\Documents and Settings\default\My Documents\C++\brock2.cpp(52) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

brock2.exe - 3 error(s), 0 warning(s)
It's been a while since I've used it, but I know a little C++ so I can try to help.

I don't have access to a C++ compiler right now because I'm not using my regular computer (since I'm home from college for semester break). So you'll have to let me know if this works ...

I think the "undeclared identifier" error is because the "double round(value)" line is before the "double value" line (both are near the beginning of the program). The error is probably a result of 'value' being used before it was declared. Try switching the two lines around.

Let me know if this fixes either of the other two errors - if not I'll look it over more closely.
  Reply With Quote