我们会在代码中发现一些整型的名字,比如UINT、__int16、u64、int64_t,等等。 这些类型有的源自于编译器的自行扩展,有的则是来自某些编程环境(比如工作在Linux内核代码中),不一而足。 而事实上,在C++11中一共只定义了以下5种标准的有符号整型: · signed char · ...
分类:
其他好文 时间:
2018-02-04 11:13:58
阅读次数:
194
有3个函数可以使用:WinExec、ShellExecute、CreateProcess 1、WinExec 这个函数最简单,只有两个参数,原型如下: UINT WinExec( LPCSTR lpCmdLine, UINT uCmdShow ); lpCmdLine:指向一个空结束的字符串,串中包 ...
分类:
其他好文 时间:
2018-01-17 01:07:26
阅读次数:
163
flag包是Go语言标准库提供用来解析命令行参数的包,使得开发命令行工具更为简单 常用方法 1.flag.Usage 输出使用方法,如linux下ls -h的帮助输出 2.flag.Type(参数名, 默认值, 使用提示) Type为类型 如String, Int, Uint 调用相应的flag.S ...
分类:
其他好文 时间:
2018-01-16 13:48:44
阅读次数:
84
private static string getErrorMsg(uint errorCode) { string errorMsg = null; switch (errorCode) { case 0x80040200: //VFW_E_INVALIDMEDIATYPE errorMsg = ...
分类:
其他好文 时间:
2018-01-15 11:19:31
阅读次数:
260
变量的命名: 第一个字符必须是字母、下划线或@; 其后的字符可以是字母、下划线或数字。 注意:区分大小写。 变量的类型: 数值类型 1.整数类型 byte、short、int、long sbyte、ushort、uint、unlong 2.浮点数类型 float、double、decimal 简单类 ...
#include #define uint unsigned int #define uchar unsigned char sfr P0M0 = 0x94; sfr P0M1 = 0x93; sfr P2M0 = 0x96; sfr P2M1 = 0x95; uint count,i,j; uch... ...
分类:
其他好文 时间:
2018-01-10 21:38:07
阅读次数:
197
#include #include #define uint unsigned int #define uchar unsigned char sfr P0M0 = 0x94; sfr P0M1 = 0x93; void delay(uint ms){ uint i,j; for(i = 0 ;i ... ...
分类:
其他好文 时间:
2018-01-10 21:34:56
阅读次数:
162
#include #define uint unsigned int #define uchar unsigned char sfr P0M0 = 0x94; sfr P0M1 = 0x93; sfr P2M0 = 0x96; sfr P2M1 = 0x95; uchar count; uchar ... ...
分类:
其他好文 时间:
2018-01-10 21:32:04
阅读次数:
180
#include #define uint unsigned int #define uchar unsigned char sfr P0M0 = 0x94; sfr P0M1 = 0x93; sfr P2M0 = 0x96; sfr P2M1 = 0x95; uint count; uchar c... ...
分类:
移动开发 时间:
2018-01-10 21:31:46
阅读次数:
220
#include LRESULT CALLBACK WindowProc(HWND,UINT,WPARAM,LPARAM); int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int ... ...