Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.23 seconds; generated 45 minute(s) ago.

  1. Replies
    15
    Views
    401

    So that's no then. What you're saying is that...

    So that's no then.

    What you're saying is that your local directories contain the ONLY copy of your code.
    You have no means of comparing two versions (one working, one not working).
    You have no...
  2. Replies
    15
    Views
    401

    I meant this -> Version control - Wikipedia...

    I meant this -> Version control - Wikipedia

    If you can't track changes, have 'development' for what you're working on, 'release' for stuff that works and 'experimental' for stuff you might end up...
  3. Replies
    15
    Views
    401

    I suppose it's too late to ask if you've got a...

    I suppose it's too late to ask if you've got a source control system like git / perforce / cvs in place.
  4. Thread: C Board is 20

    by Salem
    Replies
    1
    Views
    110

    C Board is 20

    Just over 20 years ago, the current incarnation of the forum rose from the ashes of the old UltraBoard

    Wondering if there is anyone else from those early times still around.
  5. Replies
    2
    Views
    149

    So do you have a cmotionplanner.cpp file? Are...

    So do you have a cmotionplanner.cpp file?

    Are you compiling it?

    > undefined reference to
    These typically result from
    - not compiling all your source code
    - not being able to spell correctly.
  6. Replies
    15
    Views
    401

    > If you can look the error console is saying...

    > If you can look the error console is saying 'CAN_Module.obj' failed. I cant see any .obj file in my Debug folder. What do you think?
    Well you don't get an obj file if the compile step failed, so...
  7. > char* data = (char*)malloc(length); If you're...

    > char* data = (char*)malloc(length);
    If you're writing C, then you don't need this cast.

    If your source files are the default .cpp file type that VS gives you, then you're compiling C++ code and...
  8. Well if you want people to PM you, you need to...

    Well if you want people to PM you, you need to enable that in your profile.
  9. > I am not thinking of making real time operating...

    > I am not thinking of making real time operating system.
    Oh yes you are.

    > I want to write code for round robin scheduling

    Without a scheduler, your code runs like this.


    P1();
    P2();
  10. Why are you trying to write your own, when there...

    Why are you trying to write your own, when there are many open source ones -> OSRTOS
  11. Replies
    2
    Views
    241

    Are you a bot? Because you're not learning...

    Are you a bot?

    Because you're not learning anything by posting random one-line questions, and never responding to any of the answers.

    16385

    You've only ever asked one question that was...
  12. Replies
    1
    Views
    211

    1. Indentation, apply one style consistently. ...

    1. Indentation, apply one style consistently.


    #include <stdio.h>
    #include <stdlib.h>

    #define FIT_TEST(a,b) (a.x > b.x && a.y > b.y && a.z > b.z)

    struct box {
    float x, y, z;
  13. Replies
    4
    Views
    220

    Have you ever designed and written any program...

    Have you ever designed and written any program consisting of more than one file and taking longer than a week to complete from start to end?

    If you haven't, an RTOS is a tough choice.

    > Can you...
  14. Thread: Word Counting

    by Salem
    Replies
    10
    Views
    428

    It would seem to me the first sub-task of this is...

    It would seem to me the first sub-task of this is to just find the common words.
    Then worry about the total count.
    Then worry about sorting by count.
  15. Replies
    4
    Views
    220

    Something as complicated as an operating system,...

    Something as complicated as an operating system, even a tiny one, begins with pencil and paper.

    Not deciding on a list of filenames for source code.
  16. To read the next non-space character, put a...

    To read the next non-space character, put a leading space in the scanf format.
    Like so.


    // v here!
    scanf (" %c", &userChar);
  17. Replies
    4
    Views
    314

    On a machine with infinite CPUs, each task can be...

    On a machine with infinite CPUs, each task can be scheduled and executed at the correct time.
    +---+...............+---+............... ; T2 @ P1
    +------+................................ ; T1 @ P2...
  18. Replies
    4
    Views
    314

    Are the tasks independent, or do they share...

    Are the tasks independent, or do they share resources which are guarded with mutexes?

    With a tick rate of 10mS, your 15mS task is going to have very poor timings.

    With 15mS and 30mS rates,...
  19. Replies
    9
    Views
    321

    Well that's pretty weird. Compiler Explorer...

    Well that's pretty weird.
    Compiler Explorer

    Lot's of compilers to choose from.
  20. Thread: macros???

    by Salem
    Replies
    4
    Views
    269

    I'd suggest you get an auto-completion editor to...

    I'd suggest you get an auto-completion editor to save the typing.

    Code is read 100s or 1000s of times more often than it is written.
    Riddling it with cryptic abbreviations only you understand at...
  21. The char isn't failing. In the former case, the...

    The char isn't failing.
    In the former case, the char you're getting is the newline left over from reading the input.

    If you made your printf this, you would see that it wasn't just any old...
  22. Replies
    7
    Views
    262

    > Can you tell me how to insert loop here? I...

    > Can you tell me how to insert loop here?
    I already showed you.

    You put the bulk of that main() into another function and call it f(), with a parameter of t.

    Then the loop goes in main, as I...
  23. Replies
    7
    Views
    262

    double f ( double t ) { double answer =...

    double f ( double t ) {
    double answer = pow(2.7182818,-5);
    return answer;
    }
    int main ( ) {
    for ( double t = 0 ; t < 5 ; t++ ) {
    printf("f(%f)=%f\n", t, f(t));
    }
    }
  24. You could do something like this. #include...

    You could do something like this.


    #include <stdio.h>

    int main() {
    char line[] = "John 3 5.5 89.5 30.67 0.00\n"; // replace with fgets
    char name[100];
    char *linePtr = line;
    int pos;
  25. Thread: extern function

    by Salem
    Replies
    20
    Views
    716

    Well yeah, you have the change the name in ALL...

    Well yeah, you have the change the name in ALL the places.
Results 1 to 25 of 490
Page 1 of 20 1 2 3 4