X-Git-Url: https://git.llucax.com/z.facultad/75.29/dale.git/blobdiff_plain/5e6b85a00fe62bb0a04c91d4312c34af74ebafd8..3c2ddfa05397a829512694ddf387b353b91a144e:/tests/number.cpp diff --git a/tests/number.cpp b/tests/number.cpp index c0d7bd1..490767e 100644 --- a/tests/number.cpp +++ b/tests/number.cpp @@ -21,25 +21,26 @@ int main() nu << 5; std::cout << "nu = " << nu << "\n\n"; -#endif - - number<> n1 = 0xffff00f0; - number<> n2 = 0xffff00f0; - - n1 += 1; - - n1 <<= 4; - n2 <<= 4; - - if (n1 < n2) - std::cout << "n1 es menor que n2\n"; - else if (n2 < n1) - std::cout << "n1 es mayor que n2\n"; - else - std::cout << "n1 es igual que n2\n"; - +#endif + + number<> n1 = 0xffff00f0; + number<> n2 = 0xffff00f0; + + n1 += 1; + + n1 <<= 4; + n2 <<= 4; + + if (n1 < n2) + std::cout << "n1 es menor que n2\n"; + else if (n2 < n1) + std::cout << "n1 es mayor que n2\n"; + else + std::cout << "n1 es igual que n2\n"; + number<> n3 = n1 - n2; return 0; } +