![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
菩提笑
这个作者很懒,什么都没留下…
展开
-
C++11 多线程生产者消费之模型
#include <condition_variable> #include <mutex> #include <thread> #include <iostream> #include <list> #include <chrono> using namespace std; int main(int argc, char ...原创 2020-03-06 18:22:52 · 212 阅读 · 0 评论 -
char char* 的困惑
char c="c"; //定义一个字符变量c ,value=c,且在内存中是以AscII 码方式存储,也就是存的是一个整数。 char * c="what"; //用字符指针定义一个c,且初始化为“what',此时 cout char* str[]={"what","is","your","name"}; //此时 cout #include using namespace s原创 2016-09-12 10:28:13 · 1296 阅读 · 1 评论 -
取本地时间并写入文本文件
//定义一个取 时间的函数,返回string类型。 string time() { time_t rawtime; struct tm * timeinfo; char buffer [80]; time (&rawtime); timeinfo = localtime (&rawtime); strftime (buffer,80," %F-%T",timei原创 2016-09-12 22:14:27 · 567 阅读 · 0 评论 -
c++逗号分隔符文本读取
#include #include #include using namespace std; char** ppInstrumentID; //char *pInstrumentID; void infile(char* inname); int main() { infile("./config.cnf"); return 0;原创 2016-09-14 16:25:26 · 6663 阅读 · 0 评论 -
ctp linux程序编写问题汇总
1 so库文件位置 cp libthost*.so /usr/lib64/ 这样即可。原创 2016-10-23 21:04:28 · 2664 阅读 · 0 评论 -
c++ 流入缓冲
#include // std::cout, std::ostream, std::hex #include // std::stringbuf std::stringbuf tmp_string; ////定义stringbuf std::ostream os(&tmp_string); //////定义流名称,关联到stringbu原创 2017-08-03 10:35:13 · 183 阅读 · 0 评论