控制台程序;
#include <stdio.h>
int main(){
int a = 100;
char str[20] = "www.daye.com";
printf("%#X, %#X\n", &a, str);
return 0;
}
Win32 程序;
/*-------------------------------------------------
bobo, 2020
-------------------------------------------------*/
#include <windows.h>
#include <windowsx.h>
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
static TCHAR szAppName[] = TEXT("pointerDemo");
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style =