Warning: file_get_contents() [function.file-get-contents]: SSL: 远程主机强迫关闭了一个现有的连接。 in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884

Warning: file_get_contents(https://whois.pconline.com.cn/jsLabel.jsp?ip=127.0.0.1) [function.file-get-contents]: failed to open stream: HTTP request failed! in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884
stringstream 字符串流 - huidong

huidong

首页 | 会员登录 | 关于争取 2022 寒假做出汇东网 Ver3.0.0 !
搜索文章


#include <sstream>
using namespace std;

// 示例

// 获取列表
vector<string> GetList(const char* path)
{
    vector<string> vecList;
    string res = GetFile(path), item;
    stringstream s(res);
    while (getline(s, item))
    {
        vecList.push_back(item);
    }
    return vecList;
}

https://www.apiref.com/cpp-zh/cpp/io/strstream.html 



返回首页


Copyright (C) 2018-2024 huidong