第二单元:helloword.c
#include "windows.h"
#include "tchar.h"
int _tmain(int argc,TCHAR *argv[])
{
MessageBox(NULL,
"Hello world!",
"WWW.baidu.com",
MB_OK);
return 0;
}
第三单元:LittleEndian.cpp
#include "windows.h"
BYTE b = 0x12;
WORD w = 0x1234;
DWORD dw = 0x12345678;
char str[]="abcde";
int main(int argc,CHAR *argv[])
{
byte lb = b;
WORD lw = 0x1234;
DWORD ldw = dw;
char *lstr = str;
return 0;
}
原文:https://www.cnblogs.com/chrysanthemum/p/11780321.html