36_cppbindings.cpp 243 B

123456789101112131415
  1. #include <gmpxx.h>
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6. mpz_class a;
  7. mpz_class b;
  8. a = "123";
  9. b = "321";
  10. cout << a << " + " << b << " = " << a + b << endl;
  11. cout << a << " * " << b << " = " << a * b << endl;
  12. return 0;
  13. }