Benz asked me why there were some articles' name can not be find in my txt document.
First, I thought he would not use the name of my document instead use the path. And after this error, this problem was still with us.
And during my debuging my class, I found out that when there is some blanks in the title, my class's publick function can not find it correct.
So I printed out all the content that I put into the internal memory. After done that, I was astonished by the results. There were lots of random code. I tracked the running process, and finally I found out that I had wrongly used the fstream to input a line into the internal memory.
Such a little and terrible error!
没有评论:
发表评论