Search:

Type: Posts; User: stahta01

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. 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...
  2. 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
  3. 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.
  4. Give expected output with given input. And,...

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

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

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

    Tim S.
  6. Replies
    10
    Views
    439

    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.
  7. Replies
    10
    Views
    439

    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.
  8. 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...
  9. 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.
  10. Replies
    4
    Views
    369

    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...
  11. Replies
    3
    Views
    262

    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...
  12. Replies
    4
    Views
    428

    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...
  13. Introduction to C - Cprogramming.com...

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

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


    while (pin = 12345)

    Tim S.
  15. 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.
  16. 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.
  17. Thread: vitamins

    by stahta01
    Replies
    4
    Views
    343

    All vitamins are chemicals! If you think...

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

    Tim S.
  18. Thread: vitamins

    by stahta01
    Replies
    4
    Views
    343

    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...
  19. 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...
  20. 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.


    ...
  21. Replies
    1
    Views
    204

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

    C Tutorial - Learn C - Cprogramming.com
  22. Replies
    4
    Views
    353

    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...
  23. Replies
    4
    Views
    353

    Found the exact command; will try using C++11...

    Found the exact command; will try using C++11 standard next. -std=gnu++11



    i686-w64-mingw32-g++ -std=gnu++98 -fno-PIE -c -DIN_GCC_FRONTEND -g -D__USE_MINGW_ACCESS -DIN_GCC -fno-exceptions...
  24. Replies
    4
    Views
    353

    Building GCC 10.x warning question.

    ../../gcc-git/gcc/cp/coroutines.cc:2700:22: warning: defaulted and deleted functions only available with '-std=c++11' or '-std=gnu++11'
    2700 | var_nest_node () = default;


    gcc/coroutines.cc...
  25. Replies
    5
    Views
    247

    The next thing to try would be commenting out...

    The next thing to try would be commenting out this line


    TMR0 = 0;

    In the interrupt tc_int.

    Been over 10 years since I did PIC programming.

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