Search:

Type: Posts; User: stahta01

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    5
    Views
    329

    FindX11 — CMake 3.22.0-rc1 Documentation...

    FindX11 — CMake 3.22.0-rc1 Documentation

    I would try finding the X11 and then linking the libraries.

    X11_LIBRARIES

    You could try only changing
  2. Please explain why you think you code will ever...

    Please explain why you think you code will ever have both "Rec_area>Tri_area" and "Rec_area<Tri_area" true.

    NOTE: Nesting the second if inside the first is wrong. You likely need an else if...
  3. Changed case 10 to case '\n':

    Changed case 10 to


    case '\n':
  4. ncurses example program conversion to C++

    I have decide to make an simple C++ and shell script program to help me with git commands.

    My current request is for you to look for things not done correctly for C++. I tried to use const where...
  5. x++; The malloc return value was stored in...

    x++;


    The malloc return value was stored in X; changing the value of X results in the value being destroyed!

    Tim S.
  6. Please do not destroy values returned from malloc...

    Please do not destroy values returned from malloc commands!

    Use a second pointer that you then change instead!

    Tim S.
  7. Without you posting code! I see no way anyone on...

    Without you posting code! I see no way anyone on this website who does not use your IDE to help you!

    Tim S.
  8. You can ignore my post I was thinking you were...

    You can ignore my post I was thinking you were using the Code::Blocks IDE; since what you stated you did sounded like an Code::Blocks option.

    Since, I have no knowledge about either your code or...
  9. Whenever you are using an Code::Blocks custom...

    Whenever you are using an Code::Blocks custom makefile project, you need to look inside the makefile for the cause and solution of the build problems.
    Only after the build works from the command...
  10. Links that might help understand the differences....

    Links that might help understand the differences.

    C Preprocessor Directives - C and C++ Syntax Reference - Cprogramming.com
    Tutorials - C Preprocessor Tricks - Cprogramming.com

    To me a macro...
  11. Replies
    3
    Views
    299

    You are using the compiler or your IDE wrong. ...

    You are using the compiler or your IDE wrong.

    If compiling on the command line post the commands you are using.
    If using an IDE post information about your IDE.

    Tim S.
  12. What is Context Switching in Operating System?...

    What is Context Switching in Operating System?

    Context switch - Wikipedia

    How you are going to do context switching is likely a very important thing to decide.

    Tim S.
  13. The first task is to describe the problem you are...

    The first task is to describe the problem you are trying to solve.
    Then, describe each part/step/sub-task of the problem.

    Of the three you listed (flowchart, block diagram, state diagram); block...
  14. Replies
    9
    Views
    743

    That is my guess; but, I have found my guess are...

    That is my guess; but, I have found my guess are often wrong about which optimize option causes a GCC program bug/crash.

    Tim S.
  15. Replies
    9
    Views
    743

    I did not see the problem with "-Og" can anyone...

    I did not see the problem with "-Og" can anyone else confirm this?
    MSys2 GCC 10.3.0
  16. Replies
    9
    Views
    743

    Correction it did have the bug; I forgot to set...

    Correction it did have the bug; I forgot to set optimize option on first test


    gcc.exe (Rev5, Built by MSYS2 project) 10.3.0


    Tim S.
  17. Replies
    7
    Views
    401

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

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

    I would likely use a for loop.

    Tim S.
  18. Replies
    20
    Views
    977

    Dynamic memory means you can change the amount of...

    Dynamic memory means you can change the amount of memory at run-time. Non dynamic called by you static memory (I do not consider this 100 percent correct) is fixed/set at compile time. As you write...
  19. Replies
    20
    Views
    977

    Pointers in C - Cprogramming.com...

    Pointers in C - Cprogramming.com

    The above link might help.

    The words "stack" and "heap" are important to understand.

    And, you need to know when the program will know the size at compilation...
  20. Replies
    20
    Views
    975

    Nop, you are not understanding that an function...

    Nop, you are not understanding that an function prototype is not an full function.

    Edit: The website says it is possible; but, I think an C expert would say it may just be allowed by some C...
  21. Replies
    20
    Views
    975

    file1.c extern int add(int a, int b) { ...

    file1.c


    extern int add(int a, int b)
    {
    int c;
    c = a+b;
    return c;
    }
  22. It built and ran okay; but, I do not remember the...

    It built and ran okay; but, I do not remember the ability of going backwards with the arcade unit.
    And, I am not certain about the force field; but, you likely played it on a game station instead of...
  23. Because if you do it that way; the compiler...

    Because if you do it that way; the compiler checks for mistakes like type changes and typos; when in the future the program is modified it helps from spending hours looking for stupid mistakes.
    ...
  24. extern int x; Put the above code in a header...

    extern int x;

    Put the above code in a header file.

    Include the header file by the two .c files.


    int x;
  25. Replies
    10
    Views
    544

    LATAbits.LATA15 = 1; May also need to...

    LATAbits.LATA15 = 1;


    May also need to change both of LATA to zero.
    The chip I used did not have LATA so, this is a wild guess on my part.

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