摘要: 13.1 Write a method to print the last K lines of an input file using C++.这道题让我们用C++来打印一个输入文本的最后K行,最直接的方法是先读入所有的数据,统计文本的总行数,然后再遍历一遍打印出最后K行。这个方法需要读两遍文件,... 阅读全文
posted @ 2015-10-29 12:10 Grandyang 阅读(737) 评论(0) 推荐(0)
Fork me on GitHub