#include<iostream>#include<cmath>using namespace std;int main(){ double x = 2; double r = 0; float y=0; int a = 0; __asm{ fld x//传入的一定要是浮点数,否则结果错误. fsqrt fst r fst y mov a,eax } cout<< x << endl; cout << r << endl; cout << sqrtf(2) << endl; cout << y << endl; cout << a << endl; return 0;}21.414211.414211.414215505368
新闻热点
疑难解答