Search:

Type: Posts; User: stahta01

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: Struct.

    by stahta01
    Replies
    11
    Views
    170

    And, your reply shows that you can not be helped...

    And, your reply shows that you can not be helped by me.

    Goodbye, I hope you never find a programming job with your lack of ability and laziness.

    Tim S.
  2. Thread: Struct.

    by stahta01
    Replies
    11
    Views
    170

    Do you realize that "char URL;" can only hold a...

    Do you realize that "char URL;" can only hold a single character?

    Tim S.
  3. Replies
    4
    Views
    189

    c - What is the equivalent to getch() & getche()...

    c - What is the equivalent to getch() & getche() in Linux? - Stack Overflow
  4. Replies
    4
    Views
    189

    getkey - Unix, Linux Command - Tutorialspoint...

    getkey - Unix, Linux Command - Tutorialspoint
  5. Replies
    5
    Views
    157

    struct sockaddr *sa; (struct sockaddr *)&sa...

    struct sockaddr *sa;


    (struct sockaddr *)&sa

    Why are you casting sa?
    Why are you casting an address of a pointer?

    Tim S.
  6. char nextLine[MAX_LINE_LENGTH]; char...

    char nextLine[MAX_LINE_LENGTH];
    char currLine[MAX_LINE_LENGTH];


    To be safe use


    char nextLine[MAX_LINE_LENGTH+1];
    char currLine[MAX_LINE_LENGTH+1];
  7. I would replace "strcpy" with "strncpy" because...

    I would replace "strcpy" with "strncpy" because it is safer and might be the cause of your issue.

    Tim S
  8. Did you try commenting out the "put(Hash,...

    Did you try commenting out the "put(Hash, tempElm);" call?

    Tim S.
  9. Better in my viewpoint is. Edit: But, yours...

    Better in my viewpoint is.

    Edit: But, yours looks as good; I just try to avoid loops when I think they are not needed.



    if(nextLine[deli] == '\n' || nextLine[deli] == '\r'){
    ...
  10. if(nextLine[deli] == '\n'){ ...

    if(nextLine[deli] == '\n'){
    nextLine[deli-1] = '\0';
    }


    Why are you setting nextLine[deli-1] to '\0' ?
    Instead of nextLine[deli] ?

    Tim S.
  11. Replies
    3
    Views
    156

    Operating Systems is a good next choice. You do...

    Operating Systems is a good next choice. You do not need Assembly to learn Operating Systems.

    I would say Assembly is above Computer architecture; but, not by much. And, some might say the other...
  12. Replies
    9
    Views
    230

    Step 1. You need an character array. Step 2. You...

    Step 1. You need an character array.
    Step 2. You assign the starting address to the pointer.

    Tim S.
  13. But, you will likely have to live with bad random...

    But, you will likely have to live with bad random results.

    NOTE: There are other random functions. Maybe the others people can point to a better one.

    Tim S.
  14. ernie = (rand()>>9) % totalprizes; I would...

    ernie = (rand()>>9) % totalprizes;


    I would try


    ernie = (rand()>>4) % totalprizes;


    Tim S.
  15. The normal rand function is more random in the...

    The normal rand function is more random in the higher bits than in the lower bits.

    Your logic is testing the lower bits only!

    Tim S.
  16. Replies
    2
    Views
    173

    I suggest writing your own strcpy function. Maybe...

    I suggest writing your own strcpy function. Maybe call it My_strcpy.

    It does not work is a meaningless phrase; stop using it!
    Say how it does not work.
    Fails to compile?
    Does "Y" when I expect...
  17. From system(3) - Linux manual page...

    From system(3) - Linux manual page



    Tim S.
  18. The exec family functions are slightly safer. ...

    The exec family functions are slightly safer.

    exec(3) - Linux manual page

    Note: I am not an Linux programming; so, I can not confirm you can do what you want using them.

    Tim S.
  19. No a C system function call should not be used! ...

    No a C system function call should not be used!

    Why do you think a C program should be used?

    Tim S.
  20. Replies
    4
    Views
    122

    Using literal constants instead of defines is...

    Using literal constants instead of defines is also a problem.
    Magic number (programming) - Wikipedia

    Tim S.
  21. Because you did not build the file you are...

    Because you did not build the file you are debugging!

    The person who built that binary file likely had the source code on their build machine.

    Tim S.
  22. Replies
    8
    Views
    508

    Lazy people are like horses! You can lead them to...

    Lazy people are like horses! You can lead them to water; but, you can't make them drink.

    Hint: The sample Julia code should help anyone who has the ability to learn to code!

    Tim S.
  23. Replies
    1
    Views
    248

    Library programming and class programming can be...

    Library programming and class programming can be two different things.

    I know enough to do an good (but not great) C Library; but, not sure I could do an good C++ library which often means using...
  24. GCC compiler and Linker options that help debugging?

    I am trying to debug an application crash and I am having problems.

    Any, compiler options or linker options that can improve the result of debugging.

    The program uses DrMingw to produce an...
  25. Thread: HW

    by stahta01
    Replies
    2
    Views
    149

    This website is not a website to help you cheat!...

    This website is not a website to help you cheat!

    Tim S.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4