Search:

Type: Posts; User: stahta01

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    87

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

    C Tutorial - Learn C - Cprogramming.com
  2. Replies
    4
    Views
    90

    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...
  3. Replies
    4
    Views
    90

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

    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...
  5. Replies
    5
    Views
    160

    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.
  6. Replies
    5
    Views
    160

    Looking at your code; I question this line. ...

    Looking at your code; I question this line.



    S=0;


    Would not
  7. Replies
    5
    Views
    160

    Looks like Microchip C code; no idea which MCU. ...

    Looks like Microchip C code; no idea which MCU.

    Tim S.
  8. It should be okay; unless you have a real old...

    It should be okay; unless you have a real old compiler!
    If you got a warning about shadowing you do have that problem.

    Tim S.
  9. Sorry, I missed you are passing it in; still...

    Sorry, I missed you are passing it in; still think that


    ptr_arr[0] = '\0';

    defaults to an int array as in the K & R days.

    NOTE: It no longer does that.

    Tim S.
  10. Replies
    8
    Views
    248

    Since you refuse to tell me if you are supposed...

    Since you refuse to tell me if you are supposed to use malloc I give up helping you. But, since I am not that good using malloc I would likely have given up if you said yes.

    Tim S.
  11. Maybe maybe not! As I have already said it is...

    Maybe maybe not! As I have already said it is implementation defined. If a book said that is the way it is always done, throw away that book!
    The CPU and the OS normally defines the way it is done!...
  12. Replies
    8
    Views
    248

    FYI: The use of "conio.h" usually means the...

    FYI: The use of "conio.h" usually means the student is learning from a poor instructor in India.

    Are you supposed to use malloc in this assignment?

    Tim S.
  13. Replies
    8
    Views
    248

    Functions in C - Cprogramming.com...

    Functions in C - Cprogramming.com
  14. What you are asking is implementation defined for...

    What you are asking is implementation defined for the most part.

    Tim S.
  15. Replies
    6
    Views
    216

    Introduction to C - Cprogramming.com...

    Introduction to C - Cprogramming.com

    Post your code! If you have build errors post the errors!

    Tim S.
  16. Replies
    15
    Views
    429

    Find another book because you have no idea what...

    Find another book because you have no idea what you are doing!

    If I tell you to remove the Ace of Spades from a deck?
    What card would you remove?

    Edit: Please do not ever PM again!! If you do...
  17. Replies
    15
    Views
    429

    Casting malloc - Cprogramming.com...

    Casting malloc - Cprogramming.com

    The code is crap; throw it out and start over or use the advise and fix it!

    Asking over and over what is wrong is a waste of time!
  18. Replies
    1
    Views
    233

    Functions in C - Cprogramming.com...

    Functions in C - Cprogramming.com

    You need to learn the difference between build and run-time errors.
    And, when you get an build error post it.

    Tim S.
  19. std::sort - cppreference.com...

    std::sort - cppreference.com
  20. Replies
    8
    Views
    369

    This is wrong! char exitConditon[]={"0"};...

    This is wrong!



    char exitConditon[]={"0"};


    You need an zero terminated character array to use as an C-String!

    "0" is not equal to 0
  21. Replies
    3
    Views
    303

    The second one likely used double instead of...

    The second one likely used double instead of float to store the result.

    Tim S.
  22. Replies
    3
    Views
    332

    Learn the difference between == and = when used...

    Learn the difference between == and = when used in C code.

    Tim S.
  23. Replies
    15
    Views
    539

    Casting malloc - Cprogramming.com...

    Casting malloc - Cprogramming.com

    Edit: And, you are casting it wrong even for C++ in at least two places!

    This below is considered improper; but, will likely work most of the time.

    (char*)...
  24. Replies
    15
    Views
    539

    STOP casting the result of malloc when...

    STOP casting the result of malloc when programming in C.

    If you have a compile error; post the error!!

    Tim S.
  25. Replies
    6
    Views
    435

    You can only "return" a value from a function two...

    You can only "return" a value from a function two ways.
    1. Using a return statement. Can only return a single value (which can be a structure)
    2. Passing the address of where you wish the result...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4