C++
strawberryapple
这个作者很懒,什么都没留下…
展开
-
C++ 读取二进制文件
std::ifstream fin; char *pFile; fin.open("../.json", std::ios::in | std::ios::binary);原创 2014-04-15 10:23:01 · 786 阅读 · 0 评论 -
使用信号量和关键区来实现生产者消费者
转载请标明出处,原文地址:http://blog.csdn.net/morewindows/article/details/7577591 #include #include #include const int PRODUCTNUM = 10;//生产产品个数 const int THREADNUM = 4;//线程个数 const int BUFFER_SIZE =转载 2014-04-21 16:31:37 · 355 阅读 · 0 评论