Search:

Type: Posts; User: stahta01

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    17
    Views
    319

    Good catch fixing that seems to fix it for me. ...

    Good catch fixing that seems to fix it for me.

    But, I do not like the logic; it just seems flawed what should the result of a array with a single element be?

    Here is what I used to test my own...
  2. Replies
    17
    Views
    319

    I suggest posting the input that it fails to work...

    I suggest posting the input that it fails to work on!

    Tim S.
  3. Replies
    17
    Views
    319

    I suggest testing counterIncr > 0 and counterDecr...

    I suggest testing counterIncr > 0 and counterDecr == 0

    Tim S.
  4. Replies
    17
    Views
    319

    This is the wrong thing to check "counterIncr ==...

    This is the wrong thing to check "counterIncr == (n-1)"
    What would the value be for an input of 1,2,2,3,4 ?
    What would the value be for an input of 1,1,1 ?
    What would the value be for an input of...
  5. Replies
    9
    Views
    232

    Write your own function that you use in place of...

    Write your own function that you use in place of fgets (your function calls fgets and gets rid of the trailing newline).

    Tim S.
  6. Replies
    9
    Views
    232

    Add a test to verify that "f" is not NULL. Tim...

    Add a test to verify that "f" is not NULL.

    Tim S.
  7. Replies
    9
    Views
    232

    Post code that either compiles or post the errors...

    Post code that either compiles or post the errors you get when you try to compile the code you post!

    Tim S.
  8. Replies
    7
    Views
    356

    No it goes from 0 to 9 !!!!!!!! Tim S.

    No it goes from 0 to 9 !!!!!!!!

    Tim S.
  9. You need to post the smallest code that is not...

    You need to post the smallest code that is not working!

    You do realize the code you posted will not work because you set a variable that is local to the function, right?

    Tim S.
  10. Replies
    5
    Views
    215

    1 2 4 1 3 5 2 4 6 8 1 3 5 7 9 2 4 6 8 10 12...

    1
    2 4
    1 3 5
    2 4 6 8
    1 3 5 7 9
    2 4 6 8 10 12


    If you can not figure out how to do the above try doing
  11. Replies
    8
    Views
    355

    For, While and Do While Loops in C -...

    For, While and Do While Loops in C - Cprogramming.com
  12. Replies
    3
    Views
    267

    Introduction to C - Cprogramming.com...

    Introduction to C - Cprogramming.com
  13. /* Cursor abstraction */ Cur *drw_cur_create(Drw...

    /* Cursor abstraction */
    Cur *drw_cur_create(Drw *drw, int shape);
    void drw_cur_free(Drw *drw, Cur *cursor);


    Is there a reason you did NOT see the two lines above in the header file?

    Tim S.
  14. Replies
    2
    Views
    562

    Why can't programmers learn to use their tools...

    Why can't programmers learn to use their tools correctly?

    Tim S.
  15. radioT.name[3] = "B0"; And, this is wrong even...

    radioT.name[3] = "B0";

    And, this is wrong even in C++!

    In C++, this should work.


    radioT.name = "B0";

    Tim S.
  16. You can not assign c-string in C! You need to...

    You can not assign c-string in C!
    You need to use strcpy or strncpy function to copy C-strings.

    I suggest reading the warning you get while compiling!

    Tim S.
  17. else (PIND2 = 0) This line should raise an...

    else (PIND2 = 0)

    This line should raise an warning or maybe an error!

    Tim S.
  18. Replies
    5
    Views
    262

    Link to c-tutorial C Tutorial - Learn C -...

    Link to c-tutorial C Tutorial - Learn C - Cprogramming.com
  19. Replies
    5
    Views
    262

    I just read it as a beginner who is a sap. Tim...

    I just read it as a beginner who is a sap.

    Tim S.
  20. Replies
    213
    Views
    7,528

    If you really want others to help; then you need...

    If you really want others to help; then you need to:

    1. Post which git repo has the current code you are having issues with
    2. Add a README in the repo on how to compile/build the repo.

    Tim S.
  21. Replies
    7
    Views
    333

    srand(time(NULL)); That code needs to be...

    srand(time(NULL));

    That code needs to be called only once!
    So, normally please in main function or init function.

    Tim S.
  22. Replies
    7
    Views
    333

    Lookup strncpy and use it instead of strcpy....

    Lookup strncpy and use it instead of strcpy.
    Decide if you are programming in "C" or C++; then write C or C++.

    Casting malloc is wrong in "C"; but, often needed in C++!
    Stop adding blank lines...
  23. Replies
    213
    Views
    7,528

    c - What does a type followed by _t...

    c - What does a type followed by _t (underscore-t) represent? - Stack Overflow



    Tim S.
  24. Replies
    10
    Views
    499

    Hint: "break" is an C keyword. Tim S.

    Hint: "break" is an C keyword.

    Tim S.
  25. Replies
    4
    Views
    163

    "printf" is an output function; I have no idea if...

    "printf" is an output function; I have no idea if you mean to do output or input.
    If input the "&z" is correct and printf is wrong. If output you need to use "z" instead; and, the printf is...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4