1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#include "test.h" #if TEST == TEST_MATH #include <iostream> #include "../Common/Math.h" #include "fix32/fix32.hpp" using namespace std; int main(int argc, char **argv) { Fix32 a = 1.3; Fix32 b = 2.4; Fix32 c = a * b; cout << (double)c; getchar(); return 0; } #endif