buffer.c

来自「用c++包装好的线程库,直接拿来使用,提高效率.」· C语言 代码 · 共 33 行

C
33
字号
//// This example demonstrates semaphores.//#include <threads/buffer.h>#include <iostream>#include <string>#if( GCC_VERSION>=2096 )#include <sstream>#else#include <strstream>#endifusing namespace std;using namespace cpp_threads;int main(){  int n=0;  cout << "The version is " << GCC_VERSION << endl;  IOBuffer buf;#if( GCC_VERSION>=2096 )  stringstream sstr;#else  strstream sstr;#endif  cout << "This is an example of the use of 'thread_buffer'" << endl;  cout << "or the buffer_io class." << endl;  buf.put("Hall

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?