C++
wanglihua312
这个作者很懒,什么都没留下…
展开
-
VC 得到系统所有打印机和默认打印机
//得到所有打印机DWORD dwSize,dwPrinters; ::EnumPrinters(PRINTER_ENUM_CONNECTIONS | PRINTER_ENUM_LOCAL,NULL,5,NULL,0,&dwSize,&dwPrinters); BYTE *pBuffer=new BYTE[dwSize]; ::EnumPrinters(PRINTER_ENUM_CONNE原创 2012-06-08 14:22:45 · 12258 阅读 · 0 评论 -
Android & IPhone Fling 游戏求解算法
//运行结果从下往上看// Fling.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include const int xCount = 7;const int yCount = 8;using namespace std;原创 2012-05-03 09:41:45 · 724 阅读 · 0 评论 -
std::sort 函数
//反序排序vector delIndexs;std::sort(delIndexs.begin(),delIndexs.end(),std::greater());原创 2012-07-31 15:11:43 · 508 阅读 · 0 评论 -
LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
LNK1112: module machine type 'x64' conflicts with target machine type 'X86' The problem has been solved. Many thanks to steve.Here is the solution, for those might have the same problem :)转载 2012-08-23 09:56:47 · 1533 阅读 · 0 评论 -
「is a」&&「has a」
is a,是这个类的一种,继承(是某种东西,或是某种的东西的子类)has a, 含有这个类,包含 (包含某种东西)原创 2012-11-09 09:50:20 · 845 阅读 · 0 评论