2004年7月22日

"0D 0A" and "0A"

There is some difference between "0D 0A" and "0A". They are all typed as enter string of text file. But in the DOS state of the text file, the system will change "0A" to "0D 0A" automatically. If you want to write "0A" into a text file, you must use binary openmode for opening the text file and change a iint variable with the value of 10 to a char type variable, then write it itto the file.

The tolerant mode for "endl" and when you click enter key, the input value is "0D 0A".

This problem was discouraging me a little. However it had been solved.

Just now I trained the samples of the ACE corpus, the final result was the close test with 96.1% accuracy and the open test with 95.9%. The accuracy was too high to believe. I could check them tomorrow.

没有评论:

发表评论