2020-07-18 19:06:17 +00:00
|
|
|
#include "gm3p.hpp"
|
|
|
|
|
2020-07-19 00:06:36 +00:00
|
|
|
#include <iostream>
|
|
|
|
#include <iomanip>
|
2020-07-18 19:06:17 +00:00
|
|
|
|
|
|
|
using namespace gm3p;
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
2020-07-19 15:01:23 +00:00
|
|
|
gInt a("12");
|
|
|
|
gInt b = -5;
|
2020-07-18 19:06:17 +00:00
|
|
|
|
|
|
|
gInt c = a * b;
|
|
|
|
|
2020-07-19 15:01:23 +00:00
|
|
|
std::cout << c << std::endl << std::endl;
|
|
|
|
std::cout << -c << std::endl << std::endl;
|
2020-07-19 00:06:36 +00:00
|
|
|
|
2020-07-19 15:01:23 +00:00
|
|
|
int d = Abs(c);
|
2020-07-19 00:06:36 +00:00
|
|
|
std::cout << d << std::endl;
|
|
|
|
std::cout << c.ToString(NULL, 2) << std::endl;
|
2020-07-18 19:06:17 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|