代码示例:int_tmain(intargc,_TCHAR*argv[])
{
#pragmapack(1)
typedefstruct{
inta;
charx;
inty;
charz[6];
}AAA;
printf("%d\n",sizeof(AAA));
AAAa={1,‘a‘,2,"bcdef"};
AAA*pa=&a;
int*test1=(int*)(void*)pa;
char*test2=(char*)(void*)(test1+1);
int*test3=(int*)(v..
分类:
编程语言 时间:
2014-10-10 15:15:24
阅读次数:
165
DrawText 函数功能:该函数在指定的矩形里写入格式化文本,根据指定的方法对文本格式化(扩展的制表符,字符对齐、折行等)。 函数原型:int DrawText(HDC hdc, LPCTSTR lpString, int nCount, LPRECT lpRect, UINT uFormat.....
分类:
其他好文 时间:
2014-09-19 23:43:26
阅读次数:
373