Search:

Type: Posts; User: ghoul

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    197

    What have you tried? Do you have any code that...

    What have you tried? Do you have any code that you can show?

    My advice would be to use getline() to read the first line then discard/no put the line into any use.



    ...
  2. Haha. Interdersting. Had to try this out. It...

    Haha. Interdersting. Had to try this out. It actually works, yes.

    It would have been great to test this out with clang but:



    Testsqrt.c:24:5: error: non-void function 'sqrt_function' should...
  3. Replies
    9
    Views
    386

    It is not immediately clear to me, at least based...

    It is not immediately clear to me, at least based on this piece of code why they are passing a double pointer and not just a pointer to the function. AFAIK, double pointers are used when working with...
  4. It looks accurate to me based on the fact that...

    It looks accurate to me based on the fact that var1 is stored in 4bytes of memory.

    0xc4159c - 0x0c41598 = 4

    Four bytes is makes sense as the size of an int.
  5. Replies
    4
    Views
    212

    What exactly is not working? It is not exactly...

    What exactly is not working? It is not exactly clear what your input and what the output from the program is from your screenshot.

    Just quickly wrote a similar code, almost identical to what you...
  6. Replies
    8
    Views
    207

    That is correct. With a continue statement...

    That is correct.

    With a continue statement you instruct the program to skip any of the code that would have been executed during the current run of the most adjacent loops.

    Basically, it...
  7. Replies
    8
    Views
    207

    Lazy low hanging fruit. Counting from 1 to 10...

    Lazy low hanging fruit.

    Counting from 1 to 10 could turn into a problem for a programmer?
  8. Replies
    5
    Views
    287

    Shouldn't the code you are trying to trying to...

    Shouldn't the code you are trying to trying to understand and make sense of be in the function below?




    /* Start the scheduler to start the tasks executing. */
    vTaskStartScheduler();
  9. Thread: Indent command

    by ghoul
    Replies
    15
    Views
    392

    It looks a bit like what Microsoft Visual Studio...

    It looks a bit like what Microsoft Visual Studio editor produces by default. Definitely okay if you ask me.

    The question was also not immediately clear to me. The 'indent' command was unknown to...
  10. Thread: Indent command

    by ghoul
    Replies
    15
    Views
    392

    Is it possible that this portion of the code...

    Is it possible that this portion of the code actually executes?




    {
    fprintf(stderr, "Unknown name. Can't decide what to do.\n");
    result = EXIT_FAILURE;
    }
  11. Replies
    2
    Views
    1,355

    Uploading the repos to Github might get me the...

    Uploading the repos to Github might get me the matching lines ...
  12. Also, if you format your code right, it is,...

    Also, if you format your code right, it is, beautiful, easy to read, and appealing the eyes.
  13. Replies
    2
    Views
    1,355

    Variable going out of scope

    While trying to generate some data from some log files it seems like the variable 'count', as can be seen the code below never prints anything. There some few other problems mostly with variables....
  14. My love for Qt grows every day...

    My love for Qt grows every day...
  15. ret = strstr(((*(read_file_array +...

    ret = strstr(((*(read_file_array + (index))).Nome), input);



    Should not the above follow the same syntax as the below?




    scanf("%s", (*(file_array + index)).Matricola);
  16. Replies
    9
    Views
    891

    Well, at this point, here is probably all you...

    Well, at this point, here is probably all you need to know about global variables - do not use.
  17. Replies
    18
    Views
    1,337

    Agreed, for social human beings, this could...

    Agreed, for social human beings, this could indeed help with the progress. It was not sarcastic at all.
  18. Replies
    18
    Views
    1,337

    Create a thread, spam it till the end of time.......

    Create a thread, spam it till the end of time....

    hello awsdert
  19. Replies
    0
    Views
    1,294

    Statistically large analyzing repositories

    Hello folks,

    Considering a hypothetical situation whereby one has to statistically analyze a large mercurial or git repository. By large it is 10, 20, 30 or whatever years worth of commits. People...
  20. Replies
    4
    Views
    582

    Gets me thinking of this. #include...

    Gets me thinking of this.



    #include <stdio.h>

    int main(int argc, const char **argv)

    {
    printf(" %s\n", argv[0]);
  21. Replies
    5
    Views
    1,107

    Either that... Or, maybe you just need to...

    Either that...

    Or, maybe you just need to re-phrase your question to include some code that you came up with and/or "apologize" for the use of 'ASAP'. Forums are not as hard to use...

    If at...
  22. Replies
    1
    Views
    810

    You will probably need a parser. But, for a...

    You will probably need a parser.

    But, for a simple, little calculator, a simple C 'case' switch should probably be good enough to get started with.
  23. No, but, yes, it is more or less like homework to...

    No, but, yes, it is more or less like homework to prepare for an interview.



    So we have a new std::forward_list on top of the good old std::list. std::list was the best they had during my hey...
  24. Thanks. fixed those but there still is the...

    Thanks. fixed those but there still is the segfault. It looks like my lack of knowledge about the rest of the existing code might be what is getting in my way.
  25. Inserting a node at the tail of singly linked list

    Hello,

    Below is my half-witted attempt at inserting a node at the tail of a singly linked list. Assumptions are that the list is not sorted. This should probably be simple and easy to do but my...
Results 1 to 25 of 36
Page 1 of 2 1 2