getline

  • It grabs the specified range of lines from the buffer with a getline and iterates through each.

    通过getline缓冲区获取代码指定范围,并对各项进行迭代。

    www.ibm.com

  • The function also needs to know the text on the current line, which can be retrieved using getline , and is stored in curr_line.

    函数需要知道当前文本可以使用getline来获取存储curr_line中的当前行。

    www.ibm.com

  • The function then grabs every line in the current file (getline(1,$’)) and calls the built-in writefile() function to write them to disk.

    函数随后获取当前文件getline(1,$’))中的每一调用内置writefile() 函数它们写入磁盘中

    www.ibm.com

getline

istream& getline ( istream &is , string &str , char delim ); istream& getline ( istream& , string& ); is 进行读入操作的输入流 str 存储读入的内容 delim 终结符

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享
评论 抢沙发