Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.19 seconds; generated 39 minute(s) ago.

  1. Replies
    2
    Views
    98

    I deleted all your other posts, hijacking other...

    I deleted all your other posts, hijacking other threads.

    "I cannot solve the problem with this output since I already tried many times"
    So post one of your better attempts, and then we'll help...
  2. Replies
    2
    Views
    136

    It's just min and max of all the coordinates. ...

    It's just min and max of all the coordinates.

    bb.left = min of all the x coordinates
    etc.
  3. Replies
    8
    Views
    274

    Spending hours on google trying to find 5 minute...

    Spending hours on google trying to find 5 minute videos of watching someone type (badly) isn't going to substitute for the physical act of actually trying to write code yourself.

    Start small,...
  4. Replies
    8
    Views
    274

    You already seem to be able to describe in words...

    You already seem to be able to describe in words what needs to happen.

    So given a loop like
    for ( day = 0 ; day < number_of_days ; day++ )

    and an array like
    int hours_worked_each_day[30];
    ...
  5. > Enable GingerCannot connect to Ginger Check...

    > Enable GingerCannot connect to Ginger Check your internet connection
    Please turn this crap off.

    > fptr = fopen(ptr,"w");
    1. You only need to do this once.
    2. You need close the file for...
  6. Replies
    8
    Views
    274

    So you've posted this twice - in C# and C forums....

    So you've posted this twice - in C# and C forums.
    Which do you want to keep?
  7. Thread: mac compiler

    by Salem
    Replies
    3
    Views
    193

    Where can I download old versions of Xcode? -...

    Where can I download old versions of Xcode? - Stack Overflow
  8. Thread: buffer overflow

    by Salem
    Replies
    6
    Views
    219

    Try printing your guesses in hex. It's a bit...

    Try printing your guesses in hex.
    It's a bit more obvious which bytes of your guess are being messed with by your string overflow.
  9. What about it? You should be able to string...

    What about it?

    You should be able to string together .c, .s, .o and .a files on the command line to gcc, and it will pass the relevant files onto the appropriate compilation step.
  10. Thread: f-write stdout

    by Salem
    Replies
    12
    Views
    323

    Yes, you use fprintf() instead. Or you sprintf...

    Yes, you use fprintf() instead.

    Or you sprintf it to a string, then fwrite the string.
  11. Replies
    2
    Views
    185

    /STACK (Stack Allocations) | Microsoft Docs...

    /STACK (Stack Allocations) | Microsoft Docs
  12. The assembler is going to read input from a file,...

    The assembler is going to read input from a file, or from stdin.

    So either
    - write your string to a temporary file, then invoke the assembler with your temp file as a command line parameter.
    -...
  13. Why all the omp, when you then go and slug the...

    Why all the omp, when you then go and slug the system by filling it with sleep() ?

    > The server codewars allow for 12 s time running code.
    Is that wall clock time (which sleep() will influence),...
  14. Replies
    4
    Views
    184

    You need to understand that realloc can move the...

    You need to understand that realloc can move the memory.

    So push_int needs some way to convey that back to main.

    A simple way is to do
    array = push_int(array, &counter, &size, &number);
    ...
  15. Same answer "bro". Make an effort, show where...

    Same answer "bro".
    Make an effort, show where you can get to by your own effort and then we'll help you.

    We're your guide, not your mule.
  16. It's right there on the very web page you just...

    It's right there on the very web page you just pointed us to!.
  17. First of all, we don't just "give code" in...

    First of all, we don't just "give code" in response to people just dumping their assignment on the board.

    If you really want to learn, you need to make an effort to understand some aspect of the...
  18. Replies
    1
    Views
    183

    How have you implemented your stacks to begin...

    How have you implemented your stacks to begin with?
  19. Replies
    1
    Views
    161

    Hard to say where you messed up, when you've...

    Hard to say where you messed up, when you've deleted your code.

    But here's a sequence of exercises.


    int array[5] = { 4, 1, 8, 3, 9 };
    qsort( array, 5, sizeof(array[0]), compare_fn);

    ...
  20. Replies
    16
    Views
    517

    > printf("%d\n", isNumber(".")); Also returns...

    > printf("%d\n", isNumber("."));
    Also returns 1.
  21. Replies
    1
    Views
    289

    Post your code as text, not a broken picture. ...

    Post your code as text, not a broken picture.

    Nevermind, cross-posted here as well.
    Calculate Discount c++ - C++ Forum
  22. Replies
    16
    Views
    517

    That would also return true if you typed in a...

    That would also return true if you typed in a numeric IP address.
  23. Replies
    2
    Views
    187

    The memcpy is the only way to go.

    The memcpy is the only way to go.
  24. Replies
    12
    Views
    389

    1. You need lots of braces. C isn't Python. ...

    1. You need lots of braces. C isn't Python. Just because you indented it nicely doesn't make C follow a different path through the code.

    2. Use == in place of =, if you want to compare two...
  25. > (curr->record.arg1 == record->arg1)...

    > (curr->record.arg1 == record->arg1) && \
    1. You don't need the \ at the end of these lines. You only need \ at the end of complicated #define code blocks.
    2. Make it a separate...
Results 1 to 25 of 497
Page 1 of 20 1 2 3 4