Search:

Type: Posts; User: ghoul

Page 1 of 2 1 2

Search: Search took 0.00 seconds; generated 10 minute(s) ago.

  1. 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.
  2. Replies
    5
    Views
    144

    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...
  3. Replies
    8
    Views
    185

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

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

    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();
  6. Thread: Indent command

    by ghoul
    Replies
    15
    Views
    363

    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...
  7. Thread: Indent command

    by ghoul
    Replies
    15
    Views
    363

    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;
    }
  8. Replies
    2
    Views
    1,246

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

    Uploading the repos to Github might get me the matching lines ...
  9. 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.
  10. Replies
    2
    Views
    1,246

    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....
  11. My love for Qt grows every day...

    My love for Qt grows every day...
  12. 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);
  13. Replies
    9
    Views
    855

    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.
  14. Replies
    18
    Views
    1,284

    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.
  15. Replies
    18
    Views
    1,284

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

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

    hello awsdert
  16. Replies
    0
    Views
    1,206

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

    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]);
  18. Replies
    5
    Views
    1,088

    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...
  19. Replies
    1
    Views
    800

    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.
  20. 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...
  21. 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.
  22. 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...
  23. Interesting and good to know. My simple,...

    Interesting and good to know.

    My simple, probably newbie-ish and uncreative algorithm would be:



    Create new one dimensional array with the capacity equals to the capacity of the old array. ...
  24. Replies
    1
    Views
    894

    Hello, how does this work

    Hello,

    My name is David. My programming experience spams probably over the last 8 or more years. The language in which my experience is most is C/C++ followed closely by Python, Perl, Javascript,...
  25. That. And It sounds like you already have...

    That. And

    It sounds like you already have code, posting it alongside your question would have been great
Results 1 to 25 of 33
Page 1 of 2 1 2