我那时已经把电视上的计时电路做到最小了,只要再用横向和纵向的计数器去驱动存储着字符的内存就可以了。
I already had the TV timing circuits minimized and just had to use the horizontal and vertical counters to drive some memory with the characters stored.
检查每个读取的字符是否为换页符;若是,则增加页计数器。
Check each char read to see whether it is a form feed; if so, increment the page counter.
用于换页定界的页的逻辑大体上相同,只是稍稍简单一些,因为不需要行计数器:使用getc库函数逐个读取字符。
The logic used for form-feed-delimited pages is roughly the same, but slightly simpler, as there is no need for a line counter: Read char by char using the getc library function.
为每一行数据所创建的索引成为了计数器,因为每当新的一行数据加进来的时候,这个索引是唯一的增量,这也意味着计数器将与字符串数据的总量同步变化。
The index created for each row of data becomes the count because it was only incremented when a new row of data was found, meaning it is in sync with the amount of data in the string.
然后你遍历整个字符串,每个字母的个数都累加到对应的计数器里面,可能会用到分支条件判断。
Then you could traverse the string and, for each character, increment the corresponding counter, probably using a chained conditional.
如果该字符与某个元音匹配,则该元音的计数器加1。
If the character matches one of the vowels, add 1 to that vowel's count.
当你键入单词计数器自动计数的单词和字符数。
Word counter will automatically count the number of words and characters as you type.
您也可以复制并粘贴您已经写进了字计数器中的文件,它会显示的字数和字符数为一块写。
You can also copy and paste a document you have already written into the word counter box and it will display the word count and character Numbers for that piece of writing.
您也可以复制并粘贴您已经写进了字计数器中的文件,它会显示的字数和字符数为一块写。
You can also copy and paste a document you have already written into the word counter box and it will display the word count and character Numbers for that piece of writing.
应用推荐