0

NSIS Math LibraryPowerを使用して計算を実行しようとしています。Math ライブラリの構文を理解するのに苦労しています。

NSISでこの計算を実行するにはどうすればよいですか:h ^= g;

Var h # example variables
Var g
Var a

# I am attempting to perform the following calculations in NSIS.
# I'm not sure how exactly to do it using the math library syntax?
# Do I need to include the Math.nsh library to use it?
# h ^= g;

# My attempt:
Math::Script "a = $h; b = $g; c = ?? a = Power(a,b,c); R0 = a"
4

1 に答える 1

0

XOR を計算して結果を返す関数を定義するのは、C/C++ と非常によく似ています。

Math::Script 'myxor(h,g) (h^g);'

その後、 myxor(3,2) は3 XOR 2= 1 を返します。

于 2013-01-16T09:54:29.840 に答える