This topic is now archived and is closed to further replies.


class help

Recommended Posts

I have a global class array like: class world { int x; int y; }; world rooms[10][10]; what I wanted to know is why cant I initialize the values of each object unless I''m in a function? If I do it in a function it will only be changed in that function and no where else right? The way I''ve been doing it is in my main function which is a pain. can someone help me out? If I do it outside of main I get a ton of errors. pppppllllleeeeaaassssseee help!!!

Share this post

Link to post
Share on other sites