Somebody knows why I get the correct output if I use
FILE* out;
out=fopen("ki.txt","w");
fprint(out,.........
fclose(out);
And giving the wrong codes for the 17 bytes using screen output:
fprintf(stdout,...........
So why the same text gives different output results when I output to the file and to the screen. Should I missed something in c language?
I've uploaded the output to googlepages, using file output:
http://robert.gerbicz.googlepages.com/fileoutput.txt
As you can see the 17 wild bytes are replaced by ? character. Proving that it isn't as easy as you can think.
And the screen output (width of the screen is 120, there was no line break):
http://robert.gerbicz.googlepages.com/screenoutput.txt
And the 17 bytes are again different from the correct ones.
I wouldn't call this an easy problem. But without the wild bytes, it's a medium difficulty problem. But if the goal was to minimize the number of ac codes, then it was successful from the problemsetter.