Search:

Type: Posts; User: Alexander.

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,495

    Edit: bad at forming words right now. LCGs are...

    Edit: bad at forming words right now.

    LCGs are fast and can work for fairly equal distribution, although there are much better algorithms out there. Just the fact that every major compiler times...
  2. Replies
    6
    Views
    4,954

    Also, it should be "" and not for an absolute...

    Also, it should be "" and not <> for an absolute include path as well, and \ needs to be escaped to \\ multiple times for what its worth.
  3. There are various solutions to implement to...

    There are various solutions to implement to extend the function so that it can utilize higher numbers,

    how do you think your issue can be fixed in your own words? How do you think the operations...
  4. Replies
    10
    Views
    2,001

    I believe you can put the getchar() in the while...

    I believe you can put the getchar() in the while loop constraints (and removing the first one) so that it evaluates the second time that it is a newline before it even runs (also checking for EOF)
    ...
  5. Replies
    3
    Views
    1,612

    In case you do not understand the terminology,...

    In case you do not understand the terminology, this will be dubbed a multidimensional array (although it is really more simple than that with null terminated strings).

    If you imagine a string...
  6. Replies
    9
    Views
    4,590

    If you are having trouble implementing an...

    If you are having trouble implementing an assembly in to C, you may wish to state your platform first as the syntax differs. For example you can process the char array and extract numerics out of...
  7. Replies
    11
    Views
    2,881

    I guess using time() does not provide a very...

    I guess using time() does not provide a very accurate granularity. (you said timing was 0 which could really mean 0.5 seconds). Most platforms provide a simple near millisecond granularity if you...
  8. Replies
    6
    Views
    4,954

    If your compiler can find headers other than...

    If your compiler can find headers other than stdio.h, then your installation should be broken. I would ensure that stdio.h is within your PATH (and use the compiler's versions)

    Also to note,...
  9. Replies
    7
    Views
    1,495

    The rand function should use an LCG...

    The rand function should use an LCG and may always produce the same number sequences, hense the need of a seed which is fairly random (time in seconds) to cause the algorithm to produce different...
Results 1 to 9 of 9