Classes, arrays

im trying to find some help. im trying to build a text based game as my first game and I have a class called Room to hold my information (ex room#, Description and exits) now what im trying to do is make a array(I think this is what I want) so that I can load all the rooms(say 100) from a file. I think my problem is just in the set up of the class. could any show me a example of a class with array and how to pass it into a function. I was able to make the class then pass that to the function. but that only gives me 1 room of class

thanks for any help

Room arr[100]; — c-style array.
std::vector<Room> arr(100); — C++ container containing 100 Room's but it can grow even larger in runtime.
Topic archived. No new replies allowed.