Search:

Type: Posts; User: laserlight

Page 1 of 20 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    3
    Views
    106

    Ah, but then if the game is clearly over, why...

    Ah, but then if the game is clearly over, why pause? Exit the game instead. To do this, you need to structure your code clearly so that there's a well defined way of ending the game loop when the...
  2. Replies
    5
    Views
    105

    This is a declaration of the function named...

    This is a declaration of the function named mageWeapon:

    void mageWeapon(float amount);
    it tells the reader what is the function name, parameter types, and return type. You have also used it to...
  3. Replies
    5
    Views
    105

    Instead of calling the mageWeapon function in the...

    Instead of calling the mageWeapon function in the main function, you declared it.

    By the way, next time post your code in code tags instead of posting images.
  4. Replies
    6
    Views
    171

    If someone here helps you by simply doing the...

    If someone here helps you by simply doing the work for you, especially given that you offered to pay so it is more serious than simple plagiarism, and your teacher finds out about it, you might not...
  5. Replies
    6
    Views
    171

    Since this is obviously an academic project...

    Since this is obviously an academic project rather than a real world project for which outsourcing is a valid option, paying for the code is academic dishonesty, so nope.


    Then you should...
  6. As indicated by the ".tar", infrastructure.tar is...

    As indicated by the ".tar", infrastructure.tar is an archive that we call a tarball. You would need to extract the files from this tarball, e.g., by using the tar utility on your Ubuntu Linux box....
  7. Replies
    3
    Views
    106

    It will have no effect on the execution of your...

    It will have no effect on the execution of your code, but the most important thing you can do right now is to format your code properly as it will greatly improve the readability of your code. Once...
  8. Replies
    1
    Views
    107

    Your for loop increment is wrong. It should be i++

    Your for loop increment is wrong. It should be i++
  9. Replies
    1
    Views
    94

    What exactly is ? I'd guess that...

    What exactly is <sys/player.h>? I'd guess that you may have installed a different version of your header file as a system header under a sys folder, and hence your new header file (Header.h) has a...
  10. A direct answer to your question is extremely...

    A direct answer to your question is extremely simple: given a pointer p, you can increment the pointer in any one of at least four ways:

    ++p;
    p++;
    p += 1;
    p = p + 1;

    But it doesn't sound...
  11. You really need to stop this bad habit of posting...

    You really need to stop this bad habit of posting code with no context, or in this case, taking it out of context by omitting "in a 2D char array". If you did want to provide context, then you should...
  12. You practically answered your own question: ...

    You practically answered your own question:

    func(resp->info_entry);
  13. Replies
    1
    Views
    196

    Yes, but it would be somewhat easier if you made...

    Yes, but it would be somewhat easier if you made use of existing material that explains them: cppreference.com entry list on Input/output manipulators
  14. Why don't you just change the parameter to be a...

    Why don't you just change the parameter to be a ProductType pointer? If you cannot do this because say, this function is intended to be passed as some kind of generic callback, then yes, casting to...
  15. Replies
    14
    Views
    426

    Ah. From what I understand though, this idea of a...

    Ah. From what I understand though, this idea of a "rounds" or "cost" or "work factor" parameter goes back to the key stretching idea applied to make using the old cryptographic hashes stronger when...
  16. Replies
    14
    Views
    426

    No, what I'm saying is that password hashing...

    No, what I'm saying is that password hashing algorithms want to be slow and make parallelisation difficult. That is, if you're aiming to provide a password hashing algorithm, the competitors will not...
  17. Replies
    14
    Views
    426

    This sounds more like a cryptographic hash...

    This sounds more like a cryptographic hash primitive rather than specifically a password hashing algorithm. The latter tends to have "slow" and "frustrate parallelisation" as additional goals.
  18. Replies
    3
    Views
    296

    You should read the other things Salem wrote, not...

    You should read the other things Salem wrote, not just the code.
  19. I see. So what exactly is the help that you need?

    I see. So what exactly is the help that you need?
  20. Try writing out the steps on paper and then...

    Try writing out the steps on paper and then "executing" your algorithm on paper.

    It looks like you might be getting confused between whether you want this to be a player versus player or player...
  21. Recall that macro substitution is a fairly simple...

    Recall that macro substitution is a fairly simple replacement mechanism. So if you have a function-style macro like this:

    #define ADD(x, y) ((x) + (y))
    and you use it like this:

    printf("%d\n,...
  22. No, that's just a function-style macro. The "if...

    No, that's just a function-style macro. The "if statement" is the #if macro, but of course it is a preprocessor directive, not an if statement.

    The NRFX_CHECK macro might be for flexibility so...
  23. Replies
    3
    Views
    187

    I would suggest that the first thing to do is to...

    I would suggest that the first thing to do is to format your code properly, especially where indentation is concerned. For example:

    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    ...
  24. Replies
    2
    Views
    188

    bucket_straw2_choose does not appear in the code....

    bucket_straw2_choose does not appear in the code. Did you mean the bucket_choose function? That one is declared with a return type of int, so it returns an int. If you're confused by the static...
  25. Replies
    7
    Views
    217

    Let's see your code with the "one-by-one (by...

    Let's see your code with the "one-by-one (by iterating to it)" version.

    EDIT:
    Well, I decided to adapt and combine your code in post #3 into your code in post #1:

    #include <stdio.h>

    #define...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4