Search:

Type: Posts; User: laserlight

Page 1 of 20 1 2 3 4

Search: Search took 0.14 seconds.

  1. Replies
    6
    Views
    99

    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...
  2. Replies
    6
    Views
    99

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

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

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

    I see. So what exactly is the help that you need?
  5. Replies
    23
    Views
    444

    What this error message is telling you is that...

    What this error message is telling you is that you have two rectangle objects, and you tried to compare them with the >= operator. Now, conceptually you are trying to compare to see if one rectangle...
  6. 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...
  7. Replies
    23
    Views
    444

    That doesn't make sense. You can use qsort to...

    That doesn't make sense. You can use qsort to sort rectangles by area even when you're only storing the height and width: the disadvantage is that you have to keep computing the areas whenever you...
  8. 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,...
  9. 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...
  10. Replies
    3
    Views
    145

    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>
    ...
  11. Replies
    2
    Views
    154

    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...
  12. Replies
    7
    Views
    169

    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...
  13. Replies
    7
    Views
    169

    Yeah, that's exactly what I guessed. Why don't...

    Yeah, that's exactly what I guessed. Why don't you do the same thing in your code in post #1 as you did in your code in post #3?
  14. Replies
    7
    Views
    169

    What is the code that you used for this? Perhaps...

    What is the code that you used for this? Perhaps you did something different, e.g., you used XOR character by character rather than trying to use it with the entire array at once.

    Also, printing...
  15. Replies
    9
    Views
    158

    Yeah, I'm afraid that you're compiling as C++,...

    Yeah, I'm afraid that you're compiling as C++, not C. You need to figure out how to change your setup to compile as C, otherwise you'll find that you can write valid C code that turns out to be...
  16. Replies
    9
    Views
    158

    Post the smallest and simplest program that...

    Post the smallest and simplest program that demonstrates the compile error.

    Alternatively, you can rename class to mob_class. If that fixes your compile errors, then you're probably accidentally...
  17. Replies
    23
    Views
    444

    Okay, let's examine why this is wrong: Your...

    Okay, let's examine why this is wrong:

    Your function should only have one return statement for every possible path that control could take through it. So for example, if you have an if statement,...
  18. Replies
    9
    Views
    158

    On a hunch: are you compiling with a C compiler...

    On a hunch: are you compiling with a C compiler or a C++ compiler? The .c file extension makes me think that it should default to C even if your compiler toolchain supports both C and C++, but I...
  19. Replies
    23
    Views
    444

    What exactly did you do?

    What exactly did you do?
  20. Replies
    9
    Views
    158

    You have a rough idea, but not quite. First you...

    You have a rough idea, but not quite. First you need to define a struct type:

    struct mob
    {
    char name[NAME_MAXLEN + 1];
    char sex[SEX_MAXLEN + 1];
    char race[RACE_MAXLEN + 1];
    ...
  21. There's this trick for "commenting out" large...

    There's this trick for "commenting out" large swathes of code when testing something:

    #if 0
    some code...
    #endif
    This NRFX_CHECK function-style macro does the same thing. If NRFX_SAADC_ENABLED...
  22. What you're basically trying to do is to replace...

    What you're basically trying to do is to replace the user input with something generated by the computer. So, since the user input consists of a number representing a square selection, you just need...
  23. Replies
    9
    Views
    158

    Well, one way is to use a database engine so you...

    Well, one way is to use a database engine so you just enter the data, then given the event number you query the database for the exact data that you need. SQLite would be a possible option.
    ...
  24. Replies
    23
    Views
    444

    Yes, because that's what you wrote: &rects[i] is...

    Yes, because that's what you wrote: &rects[i] is a pointer to the current rectangle, so basically you were saying "print the address of the current rectangle". If you want to print the dimensions,...
  25. Replies
    23
    Views
    444

    Break the tasks into parts. For example, surely...

    Break the tasks into parts. For example, surely printing the rectangles and their areas in their order before sorting isn't too difficult? You just need to decide on some output format. So try and...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4