我對執行 x^b 的程式有疑問。它可以作業,但堆疊不為空。
#include <iostream>
using namespace std;
int main()
{
float a = 1, b = 4, c = 1, d = 1, x = 2, y;
__asm {
fld x;
fld b;
fyl2x;
fld st;
fprem;
f2xm1;
fld1;
fadd;
fscale;
fstp y;
}
cout << y;
}
uj5u.com熱心網友回復:
fld b;
fld x;
fyl2x;
fld st;
frndint;
fsub st(1),st;
fxch;
f2xm1;
fld1;
fadd;
fscale;
fstp st(1);
fstp y
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/486387.html
