📄 example1.cpp
字号:
//hello1.cpp
#define STRICT
#include <windows.h>
#include <tchar.h>
#include <assert.h>
const TCHAR szOperation[]=_T("open");
const TCHAR szAddress[]=_T("www.baidu.com");
int WINAPI WinMain(HINSTANCE hInst,HINSTANCE ,LPSTR lpCmd,int nShow)
{
HINSTANCE hRslt=ShellExecute(NULL,szOperation,szAddress,NULL,NULL,SW_SHOWNORMAL);
assert(hRslt>(HINSTANCE) HINSTANCE_ERROR);
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -