![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
客户端开发问题
草帽当家de
编程中最没用的东西是源代码,最有用的东西是算法和数据结构。
展开
-
断点续传 curl_easy_setopt CURLOPT_RANGE
示例: stringstream ss; string srange; long long llCurrentSize; long long llTotalSize; ss << llCurrentSize; ss << "-"; ss << llTotalSize; srange >> srange; curl_easy_setopt(m_hCurl,CURLOPT_RANGE,srange.c_str()); 注:CURLOPT_RANGE : .原创 2021-07-20 15:35:17 · 1254 阅读 · 0 评论 -
QT qDebug实现 记录打印日志的具体位置(方便代码调试)
方法: 1. 包含头文件 #include <QDebug> 2. 定义宏 #define cout qDebug () << "[" << _FILE_ << ":" << _LINE_ << "]" 3. 调用(在需要打印日志的地方) cout << "需要打印的日志内容"; ...原创 2021-02-21 18:09:24 · 1003 阅读 · 0 评论