Search:

Type: Posts; User: BigToque

Search: Search took 0.00 seconds.

  1. Alright, here goes (I've excluded my main() even...

    Alright, here goes (I've excluded my main() even though it's very short):

    Also, I'm able to compile my program now that I've moved my structure out from gameLoop to the top of my code as a global...
  2. How do I access elements of a struct from a function where the element isn't declared

    In one of my functions, I've declared a structure.

    I want to be able to modify the contents of that structure (specifically an array I've defined) from another function, but I keep getting an...
  3. Replies
    3
    Views
    824

    I got it... thanks for the help guys. I didn't...

    I got it... thanks for the help guys.

    I didn't think to break my numbers apart and was getting integer overflow :o
  4. Replies
    3
    Views
    824

    When I do that I get this: 2089929714 0 0...

    When I do that I get this:

    2089929714
    0
    0
    2089952188
    131728
    0
    2147156510
    14
  5. Replies
    3
    Views
    824

    Still having problems with ifstream...

    I've been messing with this for a few hours and I just can't seem to get what I want. I've been over the documents on this for a while and I can't see what I need.

    What I want: I've got a text...
  6. Here is what my code looks like: struct...

    Here is what my code looks like:



    struct MAP {
    BITMAP *map[20][15];
    unsigned int tileID[20][15];
    };

    ifstream mapInput ("worldmap.txt", ios_base::binary );
  7. Even with: ifstream in ( filename,...

    Even with:

    ifstream in ( filename, ios_base::binary );

    The data is still coming into my program as ASCII.
  8. saving data (as binary?) and importing it into C++ as an integer?

    I'm making a 2D tile RPG clone of dragon warrior (NES).

    I have a text file that looks like this:

    1111111
    1000001
    1000001
    1111111

    Each digit represents a specific tile in a specific...
Results 1 to 8 of 8