Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.19 seconds.

  1. > The resulting program itself, not the time it...

    > The resulting program itself, not the time it is need to create it, has to be so fast as possible.
    The moment you opened a file, all sense of "+/- a few nanoseconds" went out the window.

    You're...
  2. > But in this case, I need to use goto. goto is...

    > But in this case, I need to use goto. goto is much far away faster than while, for or do-while.
    Rubbish.

    It wasn't faster because you spent HOURS chasing a problem that had no business being...
  3. Replies
    4
    Views
    106

    > what is the difference between these two...

    > what is the difference between these two functions
    There isn't any difference.
  4. Replies
    5
    Views
    98

    The FAQ shows you how to replace gets() with...

    The FAQ shows you how to replace gets() with fgets().
  5. Replies
    5
    Views
    98

    Never EVER use gets() Why gets() is bad / Buffer...

    Never EVER use gets()
    Why gets() is bad / Buffer Overflows - Cprogramming.com



    #define maxHour 44
    if(*payCategory == a1)
    {
    if(totalHour <= 44)
  6. Replies
    5
    Views
    113

    > So how does the structure of 16 bits of 1112...

    > So how does the structure of 16 bits of 1112 look?
    It has 4 leading zero bits, then 10001011000

    > How does (uint32_t)value look? [32 bits representation of 1112]
    It has 20 leading zero bits,...
  7. Replies
    1
    Views
    77

    Well you are going about it backwards. Naming...

    Well you are going about it backwards.

    Naming all your variables 'tmp' and 'ptr' doesn't add any clarity either.



    void pre_insert(struct list **head, float value) {
    struct list...
  8. Replies
    6
    Views
    107

    Yeah, save your screen captures as PNG files....

    Yeah, save your screen captures as PNG files.
    Then at least we have a chance of scaling your images to the point where the text is readable.

    Besides, C::B can just copy the console log to the...
  9. Replies
    6
    Views
    107

    This? win32 midi api - Google Search...

    This?
    win32 midi api - Google Search
  10. + /usr/bin/tar -xvvof - -rw-r--r-- josef/users...

    + /usr/bin/tar -xvvof -
    -rw-r--r-- josef/users 7558 2019-06-20 18:14 bohrungen.h
    -rw-r--r-- josef/users 7557 2019-06-20 18:12 bohrungen.h~

    Well according to this list, there is no directory...
  11. Does this even compile? typedef int...

    Does this even compile?


    typedef int (*rezultat_vydaj_nazovni_functija)(int, int, char[250]);
    rezultat_vydaj_nazovni_functija prezultat_vydaj_nazovni_functija =...
  12. Replies
    12
    Views
    287

    Some thoughts. 1. Your functions are too long....

    Some thoughts.
    1. Your functions are too long.
    2. Your functions are working at too low a level.

    All that *3, +4, % this, / that, +/- padding is clouding the issues.

    You NEED abstraction....
  13. > My routine is crashing when trying to perform...

    > My routine is crashing when trying to perform analog weighing signal reading, using the ADS1231 library.
    > Probably some pointer error, could you help me?
    Instead of speculation, run the program...
  14. Thread: Struct errors

    by Salem
    Replies
    2
    Views
    239

    There is no = on line 4.

    There is no = on line 4.
  15. > printf("\nnode data = %d node address = %p\n",...

    > printf("\nnode data = %d node address = %p\n", root->data, &root);
    Remove the & from the last parameter.
  16. I think you might be better off asking that...

    I think you might be better off asking that question on the virtualbox forums.

    Are these files present in your VirtualBox VMs\foo directory (where foo is your virtual machine name)?
    foo.vbox...
  17. I'd much rather read the code in a github than...

    I'd much rather read the code in a github than watch 15 minutes of you waffle on about your life history and watching you type code.
  18. Replies
    5
    Views
    212

    With few exceptions, when a process terminates,...

    With few exceptions, when a process terminates, all the resources held by that process will be freed.

    So if repeated runs of ancillary are presently fine in that respect, then system("ancillary...
  19. Serial Port (RS -232) Connection in C++ - Stack...

    Serial Port (RS -232) Connection in C++ - Stack Overflow
  20. The printf() function itself isn't a problem. ...

    The printf() function itself isn't a problem.

    The context however is
    - you might have nowhere for the output to be visible.
    - if you do have an output, say a serial line, it might be tediously...
  21. Replies
    5
    Views
    212

    Do the ancillary programs stop themselves when...

    Do the ancillary programs stop themselves when your main program stops the power supply?

    > --to put it simply, I want to start the ancillary tasks as though I entered them separately from the...
  22. I can see we're going to end up doing all your...

    I can see we're going to end up doing all your work for you.

    I really hope you're not being employed to write a POS system, because you're way out of your depth.
    Many weeks of catch-up and hard...
  23. 1->2->3->4->5->6->7->8->9->10->11->12->13->14->15...

    1->2->3->4->5->6->7->8->9->10->11->12->13->14->15
    An ordered linked list is also a binary tree. All the left-nodes are empty.
    It's a rubbish tree, because it's nowhere near balanced.
    It's depth...
  24. Replies
    12
    Views
    172

    > my files are text but quite large, as in...

    > my files are text but quite large, as in several gigabytes, so a copy, which doubles the ram usage
    Why do you need the whole file in memory at the same time?

    How much time is spent processing...
  25. Replies
    13
    Views
    406

    Show some code. Did you forget to multiply by...

    Show some code.

    Did you forget to multiply by sizeof(type) when you called malloc?
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4