![]() |
|
#1
|
||||
|
||||
help with class functionsHey Guys, can anyone tell me why I'm getting this error:
Quote:
when I try to compile 'shapes.cpp'? CPP / C++ / C Code:
Before anyone snaps at me for the format of the code, I spent a few minute aligning everything all nice and neat for ya, but it still posts the way it did. |
|
#2
|
||||
|
||||
|
Quote:
1) shapes.h is including stdcomp.h -- through iostream? 2) for some reason the compiler is not compiling in C++ mode but in C mode. I notice you are including iostream in both shapes.h and shapes.cpp. I don't see anything in shapes.h that uses iostream unless I missed something. Try removing that include. And in the .cpp put the iostream include first. Quote:
I discovered years ago that tabs cause formatting problems so I stopped using them in the 80's. __________________
Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough. -- Pearl Williams |
|
#3
|
||||
|
||||
|
maybe shape.h was include inside ur library
or square and circle also include inside ur library u try to rename above this 3 i think i shall work __________________
challenges are make life interesting, overcome them is make life meaningful. |
Recent GIDBlog
Stupid Management Policies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The