且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

读取空白行C ++

更新时间:2023-12-06 17:07:22

您需要使用getline()阅读整行。然后,您需要标记读取的字符串。

You would need to read the entire line using getline(). Then you would need to tokenize the strings read.

此处是使用 getline 并使用 stringstream a>。

Here is a reference on using getline and tokenizing using stringstream.