Closed HuangLK closed 11 years ago
@acefromsysu 哈哈,是的啊,这点错误应该能看出来并自己改正吧?
@acefromsysu By the way, you can use markdown to highlight your code. Press m to show the help in this page, you can get more info about it.
For example:
FileInterfaceImpl f("file.out");
int counter = 0;
while (f.GetNext()) {
std::cout << counter++ << " "<< f.word() << std::endl;
}
那个示范的例子里counter是不是没有自加一? FileInterfaceImpl f("file.out"); int counter = 0; while (f.GetNext()) { std::cout << counter << " "<< f.word() << std::endl; }