Search:

Type: Posts; User: leogoldseed

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,199

    I did not realize that: if (x == true) is...

    I did not realize that: if (x == true) is generally the same as if (x) !! Now it makes all the sense of the world. That's why he typed it: if(cigar.Compare(match)).

    You've been of enormous help....
  2. Replies
    7
    Views
    1,199

    I am learning classes right now, and I see that...

    I am learning classes right now, and I see that the chapter has info about const-correctness and passing by reference later in the book.

    Quick questions though, (I actually took this code from my...
  3. Replies
    7
    Views
    1,199

    Thanks a lot laserlight! This is the kind of...

    Thanks a lot laserlight! This is the kind of quick and small explanation that goes a long way in books, but is often skipped by experienced programmers who write the programming books. In yes, you a...
  4. Replies
    7
    Views
    1,199

    Question about "this-> pointers"

    I am having trouble understanding a functon that uses a ->this pointer. I also know that the function may work without using a ->this pointer, but the point is that I don't understand how the...
  5. Replies
    7
    Views
    2,304

    I've got it now tabstop. Feel like an idiot now....

    I've got it now tabstop. Feel like an idiot now. I read it but it got me confused for some reason. Thanks a lot!
  6. Replies
    7
    Views
    2,304

    What I don't understand is how this loop (the...

    What I don't understand is how this loop (the while one) is capable of eliminating spaces in a string with this code:



    // Function to eliminate spaces from a string
    void eatspaces(char* str)...
  7. Replies
    7
    Views
    2,304

    Are these two pieces of code equivalent?

    Is the first line of the following expression:




    while((*(str + i) = *(str + j++)) != ‘\0’)
    {
    //code here
    }
Results 1 to 7 of 7