1 #include 2 #include 3 #include 4 5 typedef struct tagLINE { 6 POINT ptStart; 7 POINT ptEnd; 8 }LINE; 9 10 LRESULT CALLBACK WndProc(HWND hwnd, UINT m... ...
分类:
其他好文 时间:
2018-05-30 15:40:59
阅读次数:
156
状态变量: 是指在函数之外声明的变量,默认是storage类型,被永久地保存在合约中。也就是说它们被写入以太币区块链中. 想象成写入一个数据库。 无符号整数: 1 uint = uint256 2 uint8 3 uint16 4 uint32 5 转换:uint16 a = uint16(45); ...
分类:
其他好文 时间:
2018-05-30 00:29:04
阅读次数:
998
在for DOS的C语言中,有一个system()函数,其功能是执行命令行程序,在Windows程序设计中WinAPI也为我们提供了类似的函数,它们就是WinExec()和ShellExecute(),下面就来讨论一下这两个函数的用法。 1)WinExec() 函数原型: UINT WinExec( ...
分类:
编程语言 时间:
2018-05-29 13:16:10
阅读次数:
259
1 lstrcatW(pszpath, "\\..\\..\\"); 2 DWORD dwlen = GetFullPathNameW(pszpath, 0u, null, null); 3 void* pv = malloc((size_t)(uint)dwlen); 4 GetFullPathN ...
1 namespace 2 { 3 UINT_T GetWriteSizeForNoBuf(UINT_T fsize) 4 { 5 UINT_T write_buf_size = 0; 6 if (fsize % 512 == 0) 7 { 8 write_buf_size ... ...
分类:
编程语言 时间:
2018-05-22 19:49:05
阅读次数:
221
#include #include "TLC549.c" code uchar seven_seg[] = {0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x80, 0x90}; //0--9 uchar cp, j; uint dat_ad; /... ...
分类:
其他好文 时间:
2018-05-21 12:39:19
阅读次数:
237
功能:从调用线程的消息队列里取得消息并放于指定的结构。 函数原型: BOOL GetMessage( _Out_ LPMSG lpMsg, _In_opt_ HWND hWnd, _In_ UINT wMsgFilterMin, _In_ UINT wMsgFilterMax); lpMsg:指向M ...
分类:
其他好文 时间:
2018-05-12 15:13:12
阅读次数:
141
功能:将一个消息寄送到指定线程的消息队列里,不等待线程处理就返回。 函数原型: BOOLPostThreadMessage( _In_ DWORD idThread, _In_ UINT Msg, _In_ WPARAM wParam, _In_ LPARAM lParam); idThread:线 ...
分类:
其他好文 时间:
2018-05-12 15:06:23
阅读次数:
168
映射映射本质上是存储和查找数据所用的键-值对。mapping (uint => string) intToStr;地址以太坊区块链由 account (账户)组成,你可以把它想象成银行账户。一个帐户的余额是 以太 (在以太坊区块链上使用的币种),你可以和其他帐户之间支付和接受以太币,就像你的银行帐户可以电汇资金到其他银行帐户一样。每个帐户都有一个“地址”,你可以把它想象成银行账号。这是账
分类:
其他好文 时间:
2018-05-11 10:49:03
阅读次数:
205
#include <dbt.h>
LRESULT CMFCApplication1Dlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
// TODO: 在此添加专用代码和/或调用基类
PDEV_BR
分类:
其他好文 时间:
2018-04-26 12:26:46
阅读次数:
148