Search:

Type: Posts; User: algorism

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds; generated 28 minute(s) ago.

  1. Replies
    27
    Views
    9,746

    I don't know anything about administrator...

    I don't know anything about administrator privileges for windows.

    What does the following code print? If you can get it running, it should show the minimum and maximum available resolutions for...
  2. Replies
    27
    Views
    9,746

    Just a cleanup of your code. Since I don't use...

    Just a cleanup of your code. Since I don't use Windows, I didn't run it (or even compile it).


    #include <windows.h>

    #define MAIN_SLEEP_DIF 5400
    #define SHORT_SLEEP 600
    #define...
  3. Replies
    9
    Views
    5,938

    I'm sorry for getting peeved. I couldn't...

    I'm sorry for getting peeved. I couldn't comprehend what your program was trying to do. It was obviously putting the digits together in every possible way and comparing them to ascii codes for the...
  4. Replies
    9
    Views
    5,938

    You didn't fix the "malloc problems" since you...

    You didn't fix the "malloc problems" since you didn't test the return value to see if it's non-NULL. That's obviously the most important thing. The other changes don't really change anything at all...
  5. Replies
    9
    Views
    5,938

    You mean 10 to the 10 (not 100), i.e., what most...

    You mean 10 to the 10 (not 100), i.e., what most humanoids call "ten billion". Since you are mallocing two arrays of this size, I assume your machine has at least 20 gigabytes of memory. Lucky you!...
  6. Why is i a pointer? It should just be an integer....

    Why is i a pointer? It should just be an integer.

    Why are you treating an enum as an array? An enum is not an array. An enum just provides a bunch of named constants. That's all.

    All you need...
  7. Look, moron, I got the last word!

    Look, moron, I got the last word!
  8. I disagree with your pointless personal opinion...

    I disagree with your pointless personal opinion about the ordering of functions. And, no, it's not "wide-held".
    I never said anything about a delete node function.
  9. Replies
    2
    Views
    2,750

    You can't nest typedefs. You need to do it in two...

    You can't nest typedefs. You need to do it in two steps.
    And s is not an object anyway. It's just a type.


    union header; // forward reference

    typedef struct S {
    unsigned int size;
    ...
  10. Firstly, just ignore Hodor's "advice". It's just...

    Firstly, just ignore Hodor's "advice". It's just an opinion, and I totally disagree with it.

    I was going to point out numerous errors in your code, but since you don't have time to edit it I will...
  11. Obviously the X11 headers aren't needed in this...

    Obviously the X11 headers aren't needed in this example.
    gcc warns me that:
    * The printf's on lines 196 and 207 are missing their char* arguments.
    * color is unused.

    Nothing to do with your...
  12. Of course you can. What's the problem? Your...

    Of course you can. What's the problem?

    Your "pseudocode" is useless, however. E.g., it's missing needed break statements.

    If you need help, we need to see some real code.
    If the program is...
  13. I was totally mistaken about the return value of...

    I was totally mistaken about the return value of main. It had nothing to do with it. I didn't notice that you were using perror where you should have just used printf.

    You should never use perror...
  14. I'm blind. You're right.

    I'm blind.
    You're right.
  15. I doubt it has anything to do with errno. That...

    I doubt it has anything to do with errno. That would be strange indeed.
  16. Although you haven't bothered to give us any...

    Although you haven't bothered to give us any information about what system/compiler/IDE you're using, I assume that you're running your code from an IDE and it's simply telling you the return code of...
  17. You can't just throw in a library function call...

    You can't just throw in a library function call and expect it to work. You need to actually read about how the function works and use it correctly. For instance, if you read about strcmp you would...
  18. Thread: Some minds

    by algorism
    Replies
    5
    Views
    1,635

    As this person is either a troll or a mental...

    As this person is either a troll or a mental case, I suggest that we just ignore this. If you need further proof, look at his previous posts.
  19. Replies
    3
    Views
    846

    To be even more precise, mad-hatter's answer is...

    To be even more precise, mad-hatter's answer is wrong. It has nothing to do with which is a "variable".
  20. Replies
    6
    Views
    6,239

    Why in the world would you post all of the...

    Why in the world would you post all of the functions separately? That's idiotic. It's just more work for both you and us (if we want to run it). Post full, runnable programs whenever possible.

    And...
  21. Replies
    5
    Views
    4,162

    Yes. Exactly. You don't need to tell it what type...

    Yes. Exactly. You don't need to tell it what type you want. C automatically converts void* to whatever type you need. If your compiler complains then you are compiling as C++ instead of C, which is a...
  22. Replies
    5
    Views
    4,162

    Your code is missing necessary includes: ...

    Your code is missing necessary includes:


    #include <stdio.h>
    #include <stdlib.h>

    "third_main" should presumably be called main and it should return an int.

    You're missing the...
  23. In Floyd's cycle-finding algorithm (a.k.a., the...

    In Floyd's cycle-finding algorithm (a.k.a., the tortoise and the hare algorithm) one pointer moves twice as fast as the other. The fast pointer will either hit a NULL pointer (meaning no cycle) or it...
  24. Replies
    4
    Views
    4,588

    "Attempted the both ways" suggests you're not...

    "Attempted the both ways" suggests you're not really thinking.
    You have to decide which way you want it.
    Let's assume you want a 24-bit bitmap, which is the common case.
    So get rid of all of the...
  25. Replies
    4
    Views
    4,588

    24-bit bitmaps don't have a color table. Either...

    24-bit bitmaps don't have a color table.
    Either set biBitCount to 8 or get rid of the color table (set bmiColors to NULL).
Results 1 to 25 of 497
Page 1 of 20 1 2 3 4