Search:

Type: Posts; User: Nominal Animal

Page 1 of 20 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    4
    Views
    1,923

    No, it is exactly your problem. Whoever guided...

    No, it is exactly your problem. Whoever guided you on your current path wasted your time; you're way off course.

    You see, you were asked to find two circumscribed circles with at least three...
  2. I took a little hiatus. Probably will take a...

    I took a little hiatus. Probably will take a longer one.


    Don't trust the web. Unless the round-trip conversions produce the original quaternion -- say, dot product between the two quaternions...
  3. Replies
    9
    Views
    2,964

    It was. Better? Does it have to be better?...

    It was.


    Better? Does it have to be better? It was supposed to be more in-depth.

    The code Whiteflags posted is excellent (aside from the buffer length or overflow checking). It, too, builds...
  4. It does not. Slack space sanitizers scrub only...

    It does not. Slack space sanitizers scrub only the unused parts of the disk, so that any deleted information is really gone.

    For example, when you edit a file, most programs actually write the...
  5. Ducol, files are allocated in blocks. If you have...

    Ducol, files are allocated in blocks. If you have a very small file, say containing just text "Hello, world!", it would still occupy a full block in storage. If the file is larger than one block,...
  6. Replies
    9
    Views
    2,964

    When you don't have access to snprintf() and...

    When you don't have access to snprintf() and other string functions, and you wish to build a fixed-size string, you may find that it is easiest to build the string from right to left.

    For example,...
  7. Replies
    11
    Views
    7,588

    Ha ha. But no, I deem OSes that provide C...

    Ha ha. But no, I deem OSes that provide C libraries that by default insist on mangling the contents of the files non-sane.

    Old Mac OS (prior to X) used to have really funky files, with resources...
  8. At the Cheezburger.com...

    At the Cheezburger.com.
  9. You: Posted a C++ question on the C...

    You:

    Posted a C++ question on the C sub-forum
    Didn't bother to write the exact question, but included a fuzzy photo of your terrible handwriting instead
    Didn't even bother to check the...
  10. Replies
    4
    Views
    5,586

    Lots. conio.h. _getch();. scanf_s() instead of...

    Lots. conio.h. _getch();. scanf_s() instead of scanf(), not checking its return value, and specifying an integer rather than a pointer to a integer to store the result to. You check the input number,...
  11. Replies
    4
    Views
    1,987

    I agree with Laserlight. I shall just expand a...

    I agree with Laserlight. I shall just expand a bit on that, if I may.

    Your program needs to parse the inputs (by prompting the user and then scanning from standard input, it looks like; you should...
  12. Replies
    11
    Views
    7,588

    Many system commands are localized. For example:...

    Many system commands are localized. For example:

    LANG=fi_FI LC_ALL=fi_FI dateoutputs
    ke 13.1.2016 12.48.08 +0200whereas

    LANG=C LC_ALL=C dateoutputs
    Wed Jan 13 12:48:08 EET 2016
    assuming you...
  13. Replies
    39
    Views
    4,479

    Yes, it is definitely solvable using basics. ...

    Yes, it is definitely solvable using basics.

    To find out how complex the problem is, I wrote a 500-line test program to do this for AND, OR, XOR, NOT, NOT-NOT (or copy), NAND, and NOR logic gates....
  14. What on earth do you need to do that for? You...

    What on earth do you need to do that for?

    You can extend algorism's example so that you can refer to each function using its name, for example


    #include <stdlib.h>
    #include <string.h>...
  15. Replies
    11
    Views
    7,588

    The configuration example should be trivial to...

    The configuration example should be trivial to modify to use whatever interface you want; it's just an example. I was too lazy to install osg and find out its keyboard support capabilities. There...
  16. Are you sure you have empty lines, and not just...

    Are you sure you have empty lines, and not just odd-ish newlines? Maybe CR LF?

    Other than that, it looks like you have one value per line:

    Joe
    1
    32
    Charlie
    Missing field
    2
  17. Replies
    11
    Views
    7,588

    I'd just pick a nonconflicting set of control...

    I'd just pick a nonconflicting set of control keys, myself.
    I've always preferred the cursor keys over WASD, anyway.

    If you do have to use those conflicting keys, then the setxkbmap -print option...
  18. Replies
    11
    Views
    7,588

    Do the keys actually conflict? It does not look...

    Do the keys actually conflict? It does not look like they do, to me.

    So, you could simply accept both W and Z for "up", and both A and Q for left (and S for down and D for right).
  19. One efficient approach is to split the buffer...

    One efficient approach is to split the buffer into chunks, for example

    #define CHUNK_SIZE 16384

    struct chunk {
    struct chunk *prev;
    struct chunk *next;
    struct slines *cache; /*...
  20. Replies
    4
    Views
    1,341

    You also avoid name space pollution. Consider,...

    You also avoid name space pollution.

    Consider, for example, a project where you have several .c files that have a helper function named process() they use internally. If they are not declared as...
  21. Replies
    4
    Views
    1,553

    There is nothing wrong with doing it this way. In...

    There is nothing wrong with doing it this way. In fact, it allows you to pass extra arguments to the recursive function, for example if you wanted to say control how the recursion is done. It is also...
  22. Replies
    4
    Views
    1,553

    Use a helper function that does the recursion: ...

    Use a helper function that does the recursion:


    void inorder_recursive(node *const node)
    {
    /* This is the recursive function that does the inorder traversal */
    }

    void inorder(b_s_tree...
  23. Random movement is not guessing, it's just random...

    Random movement is not guessing, it's just random movement. Check the Wikipedia article on guessing, for example:

    When the data at hand does not seem to help the guess, the guess is often called a...
  24. Sigh. Using a pseudorandom number to decide...

    Sigh.

    Using a pseudorandom number to decide actions is not guessing. It's just acting upon pseudorandom numbers.
  25. Thread: Null

    by Nominal Animal
    Replies
    11
    Views
    4,548

    Okay, that makes sense. (That is, you're right....

    Okay, that makes sense. (That is, you're right. The standard does not make much sense, but that's nothing new.)

    To RyanC, your initial post indicates you've probably confused the two (NULL and...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4