Search:

Type: Posts; User: wtaplin

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    927

    Ah! I see it now. I was under the assumption...

    Ah! I see it now. I was under the assumption that each of the four expressions were all checking for a collision, which didn't make sense, for all of them to return true. I see now that, in the...
  2. Replies
    2
    Views
    927

    A confusing boolean return

    Hey guys, I've been going through this book about game programming and found a collision detection function that I just can't understand how it evaluates the expression and still works correctly. I...
  3. Thread: Array Question

    by wtaplin
    Replies
    2
    Views
    855

    Ahhh ok, I was making it more complicated in my...

    Ahhh ok, I was making it more complicated in my head for some reason XD So, at the end of the loops, each element of g_iTiles will be set to 0. g_bTiles[0][0] == 0; g_bTiles[0][1] == 0; and so...
  4. Thread: Array Question

    by wtaplin
    Replies
    2
    Views
    855

    Array Question

    Hey guys, came across this in a book tonight. I think I understand it but I'd like to be sure.



    BOOL g_bTileStates[4][4];
    int g_iTiles[4][4];

    for(int i = 0; i < 4; i++)
    for(int j =...
  5. Replies
    8
    Views
    1,843

    Gettin' clearer now. Essentially, using char *s...

    Gettin' clearer now. Essentially, using char *s = "hello" puts "hello\0" out there in the computer's memory with 's' providing a way to find it and refer to it. The right to left tip really...
  6. Replies
    8
    Views
    1,843

    it's comin' togehter I think. char s[] =...

    it's comin' togehter I think. char s[] = "Hello"; -- declares a string array that only leaves enough space for "Hello" and a null. char s[10] = "Hello"; -- declares a string array that has enough...
  7. Replies
    8
    Views
    1,843

    Ahh ok, I think I'm starting to grasp the...

    Ahh ok, I think I'm starting to grasp the concept. The book I'm going through hasn't introduced stack and heap memory yet, but now that I've looked it up it's starting to come together. At first...
  8. Replies
    8
    Views
    1,843

    Question about char*

    I'm a little confused about the difference between using something like:


    char s[] = "hello"

    and


    char *s = "hello"
  9. rofl :D

    rofl :D
  10. Replies
    4
    Views
    1,227

    Ahh it worked! Thank you, thank you : ) I'm not...

    Ahh it worked! Thank you, thank you : ) I'm not sure why the author left that out of the code, or more importantly why it works but I'm sure I'll get there eventually. Thanks again!
  11. I didn't know special ed kids could get into...

    I didn't know special ed kids could get into engineering programs. What a D-bag.
  12. Replies
    4
    Views
    1,227

    The previous examples in the book dealt with...

    The previous examples in the book dealt with files in text format, as opposed to binary format, and used the same method for opening a file. It also created the file to be opened so there was no...
  13. Replies
    4
    Views
    1,227

    Help with a book example: binary files

    Hi, I've been going through the book "C++ Without Fear" by Brian Overland and I've come across a problem with one of the examples. It's about opening a binary file, writing data to it, and closing...
Results 1 to 13 of 13