【发布时间】:2014-01-29 12:11:04
【问题描述】:
我探索了一些程序的源代码并偶然发现:
// remove newlines and partial newlines to help fix issues with Windows formatted config files on Linux systems
Line.erase( remove( Line.begin( ), Line.end( ), '\r' ), Line.end( ) );
Line.erase( remove( Line.begin( ), Line.end( ), '\n' ), Line.end( ) );
什么意思?
【问题讨论】:
-
一个简单的谷歌搜索会产生足够的响应。