c++怎么读取文件中的中文字符串
c++怎么读取文件中的中文字符串
日期:2017-09-02 00:39:51 人气:1
#include <fstream>
#include <string>
#include <iostream>
using namespace std;
int main()
{
ifstream ifs("test.cpp"); // 改成你要打开的文件
streambuf* old_buffer = cin.rdbuf(ifs.rdbuf());
string read;
while(cin &