Search:

Type: Posts; User: john.c

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    11
    Views
    212

    That's idiotic. You should crank it up at least...

    That's idiotic. You should crank it up at least as high as -Wall -Wextra -Wpedantic. In fact you can add more, such as -Wshadow to detect shadowing a variable, a common beginner mistake (although...
  2. Don't try to debug the windows header files!...

    Don't try to debug the windows header files!
    Presumably you forgot to include <windows.h> or something.
    If GUID is defined, then the definitions you are missing are:


    typedef GUID IID;
    typedef...
  3. Thread: Unions...

    by john.c
    Replies
    8
    Views
    359

    If that's true then why did you show something...

    If that's true then why did you show something different?
  4. Replies
    37
    Views
    698

    I doubt that very much. You are clearly a...

    I doubt that very much. You are clearly a braindead moron. :cool:
  5. x is supposed to be an integer, and presumably...

    x is supposed to be an integer, and presumably positive even though it doesn't specify.
  6. What are you babbling about? Don't tell people...

    What are you babbling about? Don't tell people what they can and can't do. You're just a guest here.

    (BTW, the "Reply With Quote" button worked this time, but it sometimes doesn't.)
  7. It seems well-defined to me, although (x - (x -...

    It seems well-defined to me, although (x - (x - 1)) is a strange way to write 1. And the answer for x=5 is not 13.333334 but 13.3333333... (so no possibility of rounding up to a 4, really).

    This...
  8. Replies
    11
    Views
    238

    This sounds totally idiotic. You really don't...

    This sounds totally idiotic.
    You really don't seem to know what you're talking about (and I know assembly quite well).
    Forget I said anything.
  9. Replies
    11
    Views
    238

    Maybe you meant something more like this. ...

    Maybe you meant something more like this.


    #include <ctype.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <time.h>

    int main() {
  10. Replies
    3
    Views
    236

    It can't be written as nested loops without...

    It can't be written as nested loops without totally changing what it does.
    It is by nature a single-dimensional loop.
    Why do you think you want a double loop?
  11. Replies
    9
    Views
    317

    WTF? I didn't realize you had a learning...

    WTF?
    I didn't realize you had a learning disability.
  12. Replies
    9
    Views
    317

    Nope. A "global" is a variable that is accessible...

    Nope. A "global" is a variable that is accessible throughout the program, in all translation units. Although a global never gets "destroyed" until the program ends (when else would it possibly be...
  13. Replies
    15
    Views
    504

    What a moron.

    What a moron.
  14. Replies
    15
    Views
    504

    Your quest is pointless. You are an idiot....

    Your quest is pointless.
    You are an idiot.
    Those are the facts.
  15. Replies
    15
    Views
    504

    This is pointless.

    This is pointless.
  16. Replies
    4
    Views
    258

    The problem is that you make wrapLibraryFunc...

    The problem is that you make wrapLibraryFunc static in the header file.
    This causes it to not be seen outside of it's translation unit.
    Get rid of the static.
    Also, your char* parameters should...
  17. You are probably stepping on memory you shouldn't...

    You are probably stepping on memory you shouldn't somewhere.
    The different memory layouts of debug and release mode with or without inlining is what is causing the different behavior.
    Have you...
  18. Replies
    4
    Views
    383

    All of your return paths return 1. Presumably...

    All of your return paths return 1.
    Presumably the last one should return 0. :)
  19. Replies
    2
    Views
    296

    You need to compile with full warnings and fix...

    You need to compile with full warnings and fix all of them. Here are a couple of mistakes:


    if (error = mkfifo(fifo , 0666) == -1) {
    ...
    if (error = pthread_create(calc_arr[i],...
  20. Replies
    4
    Views
    383

    You aren't allocating any memory for the visited...

    You aren't allocating any memory for the visited array.
  21. Replies
    3
    Views
    366

    Nothing is happening. Your machine (our common...

    Nothing is happening.
    Your machine (our common Intel/AMD machines) are little endian.
    So the value 0xd8754a52 is stored in memory with the "little end" (least significant byte) "first" (lowest) in...
  22. "Conversion loses qualifiers" suggests that the...

    "Conversion loses qualifiers" suggests that the "const" is causing the difference.
  23. Replies
    3
    Views
    557

    Well, "triangle" has an 'n' in it. And you...

    Well, "triangle" has an 'n' in it.
    And you aren't storing "points" but side lengths.
    Also, the exercise says to pass a triangle to the function, not it's separate side lengths.
  24. Replies
    2
    Views
    346

    Maybe something like this. I couldn't test it...

    Maybe something like this. I couldn't test it since you didn't give me a full program. I'm assuming "index_stock" is what might better be called stock_size, the current number of active elements in...
  25. Replies
    8
    Views
    396

    That's the difference between "text" and "binary"...

    That's the difference between "text" and "binary" modes in both C and C++.
    In text mode, the '\r' chars are removed.
    In binary mode they aren't.
    The OP's problem counting newlines had to do with...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4