producer.cpp
来自「pv 操作范例 内容全面 适合初学者以及专业人员参考和借鉴~~~~~~想写p」· C++ 代码 · 共 37 行
CPP
37 行
// producer.cpp : 定义控制台应用程序的入口点。
//
// ShareDll.cpp : 定义 DLL 应用程序的入口点。
//
// Chen Danwei 2005-10-1
//
// for the demo of PV opreation in OS classe
//pls contact with chendanwei@hotmail.com if any question about it
#include "stdafx.h"
#include "../ShareDllLib.h"
int _tmain(int argc, _TCHAR* argv[])
{
LONG aData = 0;
while( 1 )
{
++aData;
WriteBuffer(aData);
printf("write %d to the buffer.....\n", aData);
Sleep(100);
}
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?