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...
Type: Posts; User: RedRacer
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...
We tried that code and it ran for us. Is that the exact code you're using?
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?
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...
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"...
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...
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...
result = fread(unPacked, 1, fileSize, fp);
fread(originalUnPacked, 1, fileSize, fp);
Try rewinding the file before calling the second fread().
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...
Try to implement quicksort.