difference of where an object is declared?

what is the difference of an object being declared after the class definition(well actually within it) as compared to inside main?

one program i had, had an empty object list and declared them in main, and i had a lot of problems, but when i moved them into the object list in class, i had no problems?

im guessing the scope of it being declared in main is within main, and being declared in the object list is (global)? not sure though???

Can anyone clarify this?
Last edited on
Topic archived. No new replies allowed.