刘收获

导航

01 2017 档案

通过注册表获取计算机相关信息
摘要:RegOpenKey() capGetDriverDescription()// Test.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <iostream>#include <windows.h>#include <Vfw.h> #pragm 阅读全文

posted @ 2017-01-18 00:27 沉疴 阅读(190) 评论(0) 推荐(0) 编辑

GetTickCount()函数
摘要:GetTickCount(),这个函数,在此做下整理和总结。1.定义For Release configurations, this function returns the number of milliseconds since the device booted, excluding any 阅读全文

posted @ 2017-01-18 00:07 沉疴 阅读(546) 评论(0) 推荐(0) 编辑

SystemInfo获取计算机相关信息
摘要:// SystemInfo.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include <iostream>#include <windows.h>#include <iomanip>using namespace std;int main(){ SYSTE 阅读全文

posted @ 2017-01-17 19:53 沉疴 阅读(168) 评论(0) 推荐(0) 编辑

CriticalSection 临界区
摘要:// 临界区.cpp : 定义控制台应用程序的入口点。// #include "stdafx.h"#include<windows.h>#include<iostream>using namespace std; DWORD g_cnt1;DWORD g_cnt2;BOOL g_bContinue 阅读全文

posted @ 2017-01-16 21:52 沉疴 阅读(140) 评论(0) 推荐(0) 编辑

floor()函数 向下取整 ceil()函数向上取整
摘要:floor(x) is the largest integer not greater than x , 也就是,floor(x) 返回的是小于等于x的所有整数中最大的整数,简单的说,就是去掉x的小数部分的整数ceil(x) is the smallest integer not less than 阅读全文

posted @ 2017-01-16 19:51 沉疴 阅读(463) 评论(0) 推荐(0) 编辑

C++虚析构函数的作用
摘要:注:本文内容来源于zhice163博文,感谢作者的整理。 1.为什么基类的析构函数是虚函数? 在实现多态时,当用基类操作派生类,在析构时防止只析构基类而不析构派生类的状况发生。 下面转自网络:源地址 http://blog.sina.com.cn/s/blog_7c773cc50100y9hz.ht 阅读全文

posted @ 2017-01-16 19:29 沉疴 阅读(270) 评论(0) 推荐(0) 编辑