ssercpp12 / Homework

Homework result for 12 sser cpp
1 stars 8 forks source link

homework3 #2

Closed HuangLK closed 11 years ago

HuangLK commented 11 years ago

那个示范的例子里counter是不是没有自加一? FileInterfaceImpl f("file.out"); int counter = 0; while (f.GetNext()) { std::cout << counter << " "<< f.word() << std::endl; }

zhchbin commented 11 years ago

@acefromsysu 哈哈,是的啊,这点错误应该能看出来并自己改正吧?

zhchbin commented 11 years ago

@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; 
}