Search:

Type: Posts; User: stahta01

Page 1 of 20 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    8
    Views
    46

    On windows, I would guess spaces in the path and...

    On windows, I would guess spaces in the path and try changing



    git -C $(CLONED_DIR) clone https://gitlab.com/awsdert/mak.git


    to
  2. Replies
    6
    Views
    390

    Pre-defined Compiler Macros / Wiki / Home...

    Pre-defined Compiler Macros / Wiki / Home

    Tim S
  3. Thread: Realloc limit

    by stahta01
    Replies
    14
    Views
    717

    if(rg == NULL){ free(rg); ...

    if(rg == NULL){
    free(rg);
    return 0;
    }


    Freeing a NULL pointer can cause a crash with some C Compilers.
    No idea if that is true with yours!

    I think the C++ Compilers are...
  4. You likely will need to learn how to use dynamic...

    You likely will need to learn how to use dynamic memory management; but, this is just a guess based on the little information that you posted.
    If you mean to recompile the program after each change...
  5. Search found a possible match of pattern here...

    Search found a possible match of pattern here Bitcoin puzzle transaction ~32 BTC prize to who solves it
  6. FYI to Admin: The OP attached a copyrighted...

    FYI to Admin: The OP attached a copyrighted document that likely violates the Copyright of the doc.

    Tim S.
  7. Give expected output with given input. And,...

    Give expected output with given input.
    And, then, give output you got instead.

    Tim S.
  8. Are you sure the program is supposed to be...

    Are you sure the program is supposed to be written in C++?

    Tim S.
  9. Replies
    10
    Views
    650

    Why fflush(stdin) is wrong - Cprogramming.com...

    Why fflush(stdin) is wrong - Cprogramming.com


    Get a line of text from the user/keyboard (C) - Cprogramming.com

    Tim S.
  10. Replies
    10
    Views
    650

    IIRC, fgets leaves the newline on the end. ...

    IIRC, fgets leaves the newline on the end.

    Yep, this link agrees with my memory, fgets(3): input of char/strings - Linux man page

    Tim S.
  11. So, it is time for you to start posting some...

    So, it is time for you to start posting some code.

    I would for the small number of arrays and small number of elements, use defines for the max number elements and number of arrays.

    I would use...
  12. Is there any reason you picked C as the Language...

    Is there any reason you picked C as the Language to do this project?

    Tim S.
  13. Replies
    4
    Views
    641

    What do you think this line is doing? ...

    What do you think this line is doing?



    numbers[ball] = 1;


    It is recording that the number that matches the value of ball has been picked. The while checks to verify the number has not yet...
  14. Replies
    3
    Views
    390

    Very good answer; I was not able to think of a...

    Very good answer; I was not able to think of a simple answer based on the OP code; I did not think of the idea of starting from scratch to solve the issue.
    And, I would have used an function that...
  15. Replies
    4
    Views
    577

    if (pin == 012345); Look for semi colons...

    if (pin == 012345);


    Look for semi colons like the above that should not be there!

    My experience is to not add any semi colon that I do not know is needed.

    The compiler does great on...
  16. Introduction to C - Cprogramming.com...

    Introduction to C - Cprogramming.com
  17. Please learn and remember the difference between...

    Please learn and remember the difference between "==" and "=".


    while (pin = 12345)

    Tim S.
  18. You almost need to forget about the hardware when...

    You almost need to forget about the hardware when talking about the software above the assembly programming level.

    Tim S.
  19. Your code look like it is written for Windows; is...

    Your code look like it is written for Windows; is this correct?
    Because there are differences between file handling in Windows and Linux!

    Tim S.
  20. Thread: vitamins

    by stahta01
    Replies
    4
    Views
    450

    All vitamins are chemicals! If you think...

    All vitamins are chemicals! If you think otherwise you likely need professional help.

    Tim S.
  21. Thread: vitamins

    by stahta01
    Replies
    4
    Views
    450

    The Fat-Soluble Vitamins: A, D, E and K NOTE:...

    The Fat-Soluble Vitamins: A, D, E and K

    NOTE: To my knowledge you can easy over dose on any fat-soluble vitamin.

    I did not know till today that vitamin D is fat-soluble; going to have to look...
  22. Sounds like I know all of what you stated; and...

    Sounds like I know all of what you stated; and the macro appears to be always defined!
    Under C I can set it to zero; but, under C++ it requires it to be one for C++ libraries to work.


    Not...
  23. PRId64 test code is it correct and proper?

    I am having PRId64 warnings while building MinGW64 GCC under MSys2 for MinGW 64 bit. I just wish to verify my test code is correct in order to start determining the cause of the many warnings.


    ...
  24. Replies
    1
    Views
    260

    C Tutorial - Learn C - Cprogramming.com...

    C Tutorial - Learn C - Cprogramming.com
  25. Replies
    4
    Views
    426

    Since, I posted the first post in this thread I...

    Since, I posted the first post in this thread I have found that GCC sets explicit versions of at least different 4 values; still have not found where std=gnu++98 is set.

    But, I have decided to...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4