-
这个c++程序拥有计算器的一些基本功能,初学c++的朋友可以下载...
这个c++程序拥有计算器的一些基本功能,初学c++的朋友可以下载-The c++ program has some of the basic calculator functions, beginner c++ to see if a friend can be downloaded
- 2022-01-26 02:26:27下载
- 积分:1
-
电压输出设计,AT89C51,DAC0808,把某一特定电压转成指定电压输出,输出电压通过键盘输入即可调...
电压输出设计,AT89C51,DAC0808,把某一特定电压转成指定电压输出,输出电压通过键盘输入即可调
- 2023-06-07 10:50:04下载
- 积分:1
-
IBAN Calculator
只是我写的一个小程序,用来计算出国际银行账号和银行识别码。
- 2022-11-02 09:30:03下载
- 积分:1
-
From a small program, VC++ written, DisplayMode used to obtain the various param...
上传个小程序,VC++写的,DisplayMode用于获取当前显示器的各种参数-From a small program, VC++ written, DisplayMode used to obtain the various parameters of the current display
- 2022-03-18 01:03:49下载
- 积分:1
-
JS-最新打印机测试软件
资源描述vb开发JS-最新打印机测试软件,并口,串口,网口
- 2022-11-28 18:35:04下载
- 积分:1
-
用delphi7创建intraweb应用程序
用delphi7创建intraweb应用程序-delphi7 used to create applications Intraweb
- 2023-05-05 10:00:03下载
- 积分:1
-
这是一张通用定时器/计数器卡你可以绕线在我们…
This is a photo of a general purpose timer/counter card you can wirewrap in a weekend. It plugs into your PC s ISA bus just like a sound or modem card. It gives high-resolution timing (microseconds). Because of its programmablity, it is very powerful and flexible. You can even control DC or servo motors using pulse-width modulated (PWM), or stepper motors using its square wave capabilities. The figure below is the actual output (square wave) from the 8254 card captured by an oscilloscope:
- 2023-07-12 20:15:03下载
- 积分:1
-
java制作的计算器,能实现加减乘除功能的简单能。
java制作的计算器,能实现加减乘除功能的简单能。-produced by the calculator, able to function in the arithmetic can be simple.
- 2022-07-11 10:33:54下载
- 积分:1
-
文件修改监控
ReadDirectoryChangesW 有同步和异步2种方式,
根据前面打开的文件夹对象句柄决定。
1. 异步方式,如果 CreateFile 指定了打开类型 FILE_FLAG_OVERLAPPED 就是异步方式,ReadDirectoryChangesW 调用的时候就需要指定 OVERLAPPED 参数.
接下来对文件夹I/O变化的响应判断有多种方式。
A通过不断的调用HasOverlappedIoCompleted函数(非阻塞,参数就是前面的OVERLAPPED 对象指针)的返回值来判断是否发生了 关注文件句柄的I/O操作。如果发生变化,再执行你的 switch(Buffer[0].Action) 操作过程。
B GetOverlappedResult 读取 OVERLAPPED 对象的结果。(阻塞)
C 完成端口 GetQueuedCompletionStatus (阻塞)。
其中阻塞方式,必须采用多线程的方式,否则你的主线程被阻塞的话,对话框就动不了了。非阻塞方式也可用多线程,结合hEvent对象来使用。
2.同步方式,如果CreateFile不指定FILE_FLAG_OVERLAPPED ,就是同步方式。
同步方式操作比较简单。lz的程序看来就是使用的同步方式。
在同步下,ReadDirectoryChangesW 将被阻塞,直到一个文件夹句柄的I/O操作到来,然后才能判断。所以lz的程序会死掉。
同步方式必须采用多线程,再创建一个线程,线程函数采用如下方式:
UINT ThreadProc(PVOID)
{
CreateFile();
while(1) // 如果只想监视一次文件的I/O变化,可不用while循环。
{
- 2022-03-10 05:44:52下载
- 积分:1
-
题目:有一个已经排好序的数组。现输入一个数,要求按原来的规律将它插入数组中。
1. 程序分析:首先判断此数是否大于最后一个数,然后再考虑插入中间的数的情况,...
题目:有一个已经排好序的数组。现输入一个数,要求按原来的规律将它插入数组中。
1. 程序分析:首先判断此数是否大于最后一个数,然后再考虑插入中间的数的情况,插入后
此元素之后的数,依次后移一个位置。
2.程序源代码:-Title: already have a good sequence of the array row. Now enter a number of requirements in accordance with the laws of the original array to insert it. 1. Program analysis: First, to determine whether this number is greater than the last few, and then inserted between a few to consider the case, insert the following after the element number, followed by one position after the shift. 2. Program source code:
- 2022-04-08 06:57:14下载
- 积分:1