Search:

Type: Posts; User: RedRacer

Search: Search took 0.01 seconds.

  1. Replies
    31
    Views
    7,724

    Ah. Yes that would be why it doesn't run. ...

    Ah. Yes that would be why it doesn't run. However, you still should have been notified that you were running the trial rather than having it sit there doing nothing. We'll be looking into why that...
  2. Replies
    31
    Views
    7,724

    We tried that code and it ran for us. Is that...

    We tried that code and it ran for us. Is that the exact code you're using?
  3. Replies
    31
    Views
    7,724

    Hi, I'm one of the developers of Tenacious C. ...

    Hi, I'm one of the developers of Tenacious C. Sorry to hear it's giving you problems. If you'd like I'd be more than happy to help you out. What's the main problem you're running into?
  4. Replies
    11
    Views
    5,934

    The easy answer: use the ldiv function provided...

    The easy answer: use the ldiv function provided by the standard library.

    ldiv - Stdlib.h - C - C++ Computing Reference with Worked Examples

    Of course the point of this problem might be to...
  5. This will work: *(&line1[0]) = line[ii]; ...

    This will work:



    *(&line1[0]) = line[ii];


    I have to ask, why does the destination need to be a single-element array rather than just a char variable?

    You also need to make sure the "l"...
  6. Replies
    2
    Views
    1,433

    Have you looked at realloc? It will allow you to...

    Have you looked at realloc? It will allow you to change the size of the allocation while preserving the memory contents. Just be careful to check the return value -- sometimes realloc will have to...
  7. Replies
    4
    Views
    997

    One fun thing you could do is pick up an Arduino...

    One fun thing you could do is pick up an Arduino board (they're extremely cheap) and write some simple programs to turn on LED lights, drive a servomotor, etc. C is the language of choice for the...
  8. Replies
    4
    Views
    1,148

    result = fread(unPacked, 1, fileSize, fp);...

    result = fread(unPacked, 1, fileSize, fp);
    fread(originalUnPacked, 1, fileSize, fp);

    Try rewinding the file before calling the second fread().
  9. Replies
    9
    Views
    1,814

    I suggested quicksort because it's a tougher than...

    I suggested quicksort because it's a tougher than GCD or Towers or Hanoi, and -- more importantly to me -- it requires a good understanding of arrays in C, especially when performing the in-place...
  10. Replies
    9
    Views
    1,814

    Try to implement quicksort...

    Try to implement quicksort.
Results 1 to 10 of 10