Jump to content
  • Advertisement


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


class help

This topic is 6550 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!