编写程序实现从标准输入每次读入一行文本。然后改写程序,每次读入一个单词。
Write a program to read the standard input a line at a time. Modify your program to read a word at a time.
这一行更改将允许读入百分数值,该值将决定上面显示的渐变百分数。
This one-line change will allow for reading in of the percent value that determines the shading percentage shown above.
一旦将一行读入模式缓冲区,它就执行' d '命令,然后打印模式缓冲区的内容(在本例中没有内容)。
Once a line was read into the pattern buffer, it performed the 'd' command and printed the contents of the pattern buffer (nothing in this example).
应用推荐