PDA

View Full Version : declaring identifiers



jofoxy
12-22-2004, 11:22 AM
when you declare identifiers in the Decleare global variables and constants section, how to you place two of them? e.g. i already have which works...

circle myCircle;
// declare instance of circle structure
called myCircle

but when i place another like this...
ellipse myEllipse;

it dont work?

why is this? how do you place other variables and constants?

lv jofoxy

Hylke Donker
12-23-2004, 06:38 AM
Please show me some more code so i can help you.

jofoxy
12-23-2004, 10:11 AM
/************************************************** *****
2. Decleare global variables and constants
************************************************** *****/
circle myCircle; ***this works
ellipse myEllipse; ***this dont

help

dvm
12-24-2004, 01:31 PM
Well, have you declared the eclipse class?
Also, I doubt that this is the problem, but once I couldn't declare another member inside my class because the destructor of one of my classes was messed up. Pretty messy, so I doubt this is the case.