#include <stdio.h>
int main(int argc, char* argv[])
{
char* s="结果为%.2lf\n";
int a=1199;
int b=3;
double c=0.0;
_asm
{
fld a;
fdiv b;
fstp qword ptr c;
mov eax,dword ptr s;
push eax;
call dword ptr printf; //注意这个dword ptr 一定要前缀printf
}
return 0;
}