Search:

Type: Posts; User: 12938451357

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,061

    NULL is more likely to be (void*)0. But if the...

    NULL is more likely to be (void*)0. But if the variable is an int you should use 0, if it's a pointer you should use NULL. It's a bad idea to try and use NULL in any context other than pointers.
  2. Thread: Java

    by 12938451357
    Replies
    4
    Views
    2,243

    It doesn't get better than...

    It doesn't get better than http://forum.java.sun.com/
  3. Replies
    21
    Views
    7,615

    I wasn't talking about fast food either. I can...

    I wasn't talking about fast food either. I can think of several nice sit down bring you dinner restaurants that I can get just about anything for less than $20. ;)
  4. Replies
    21
    Views
    7,615

    Wow, you people eat expensive. I can usually get...

    Wow, you people eat expensive. I can usually get a big meal at an okay restaurant for like $15.
  5. Replies
    15
    Views
    3,004

    > if (fgets(word, sizeof word, stdin) != NULL) ...

    > if (fgets(word, sizeof word, stdin) != NULL)
    > if(fgets(word, sizeof(word), stdin, != NULL)

    compiles great both ways.

    can someone explain why sizeof(word) and sizeof word are the same...
  6. Replies
    4
    Views
    3,732

    #include #include #include...

    #include <iterator>
    #include <vector>
    #include <iostream>
    #include <fstream>
    #include <algorithm>

    using namespace std;

    int main()
    {
  7. Replies
    3
    Views
    1,033

    Clearly he doesn't or he wouldn't be asking. The...

    Clearly he doesn't or he wouldn't be asking. The problem is that limit in this context is a copy of the limit that was passed to the function. It needs to be a reference for any changes to take...
  8. Replies
    4
    Views
    1,411

    Here's bubble sort, but you're better off doing...

    Here's bubble sort, but you're better off doing the insertion sort since it's more useful


    #include <iostream>

    using namespace std;

    int main()
    {
    int a[] = {5,4,7,6,3,7,1};
  9. Replies
    4
    Views
    3,732

    Works for me like this #include ...

    Works for me like this


    #include <iostream>
    #include <fstream>
    #include <iterator>

    using namespace std;

    int main()
  10. Replies
    11
    Views
    1,642

    C doesn't have new and delete operators. You want...

    C doesn't have new and delete operators. You want to post this in the C++ forum. :)
  11. Replies
    6
    Views
    1,632

    >So I just guessed you could figure it out. If...

    >So I just guessed you could figure it out.
    If size() and length() didn't work then I had to assume you were doing something wrong or not using the std::string. Most likely your problem is that...
Results 1 to 11 of 11