📄 c.cpp
字号:
// C.cpp : Defines the entry point for the application.
//
/*********************************\
*文件:C.CPP *
*功能:演示在C/C++中插入汇编指令*
\*********************************/
#include "stdafx.h"
int APIENTRY WinMain(HMODULE hMod,HMODULE prehMod,LPSTR lpCmd,int n)
{
char *lpCaption ="标题";
char *lpText ="C/C++中插入汇编指令示例";
__asm{
push MB_OK //MessageBox参数入栈
push lpCaption
push lpText
push NULL
call dword ptr MessageBoxA //调用MessageBoxA
}
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -