Consider, for example, how to write an algorithm that performs linear search through a range.
考虑,举个例子,怎么写一个算法执行线性搜索一个区域。
As in the fixed-lines-per-page case, write output only if the page is within the specified range.
与每页行数固定的情况一样,仅当页在指定范围之内才写输出。
Then check to see whether the page counter is within the requested range of pages, and if so, write the current line; otherwise do not write.
然后检查页计数器是否在请求的页范围之内,若是,则写当前行;否则不写。
应用推荐