Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: threads Win32 <-> Linux #3387
    Priyansh Agrawal
    Participant

    Ok, I found the problem/solution but I’m not satisfied: All works fine when the optimizations in gcc are turned off.
    Each optimization (O, O1, O2, O3, Os) will cause an endless loop.

    Here an example:

    in reply to: base conversion #3265
    Priyansh Agrawal
    Participant

    This code could do this from base 2-10 to base 2-10. There is a nice function called itoa that converts int to char* and you can specify the base. Unfortunatelly the function atoi has no base-parameter. So I recoded it:

    in reply to: Regarding replacing line of code?? #3385
    Priyansh Agrawal
    Participant

    Sorry, your code looks very strange to me. Where do you want to place the output-file ? You opened an input-file for read-only. There you can’t make any changes.

    Perhaps this should help you:

    in reply to: Copy/Read/Write a binary file(.mp3) #3384
    Priyansh Agrawal
    Participant

    Well, that’s C++-code. In C this would look like that:

    in reply to: How to count characters from text file #3374
    Priyansh Agrawal
    Participant

    Count each line, voila: (you can pass the filename/path as the first argument)

Viewing 5 posts - 1 through 5 (of 5 total)