Search:

Type: Posts; User: SnakeJam

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    1,675

    This is making a lot more sense, and I get how to...

    This is making a lot more sense, and I get how to I should use map now.
  2. Replies
    13
    Views
    1,675

    In the 8th line did you mean string temp_building...

    In the 8th line did you mean string temp_building or building temp_building;

    Never mind, you didn't.


    Anyways, that looks like what I want to d. I take it that map[building_name] is the...
  3. Replies
    13
    Views
    1,675

    Could you give me a simple example using map...

    Could you give me a simple example using map because I don't really know much about it. Not an entire program, just how to declare an object the way I want using map (if it is in fact that...
  4. Replies
    13
    Views
    1,675

    I guess I might not be very clear about what I...

    I guess I might not be very clear about what I want to do because I don't really know how to explain it. basically I want to be able to make objects without knowing they are going to be created...
  5. Replies
    13
    Views
    1,675

    So lets say I declared 4 objects of BUILDING in...

    So lets say I declared 4 objects of BUILDING in the actual program code. That would work for the text file I have, but what if the text file had 5 names in it. Like this:


    /* buildings.txt */...
  6. Replies
    13
    Views
    1,675

    So the structure needs to be something like this:...

    So the structure needs to be something like this:


    struct BUILDING
    {
    int size;
    string object_name;
    //rest of stuff
    };
  7. Replies
    13
    Views
    1,675

    Declare an Object Via Text File

    I need a way to simply declare an object based off what a text file says. For example, a text file could have the following contents:

    /* buildings.txt */
    house1
    house2
    cabin1
    house3

    After...
Results 1 to 7 of 7