Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

33 строки
708 B

  1. //
  2. // Lol Engine - Sandbox program
  3. //
  4. // Copyright © 2005—2015 Sam Hocevar <sam@hocevar.net>
  5. //
  6. // This program is free software. It comes without any warranty, to
  7. // the extent permitted by applicable law. You can redistribute it
  8. // and/or modify it under the terms of the Do What the Fuck You Want
  9. // to Public License, Version 2, as published by the WTFPL Task Force.
  10. // See http://www.wtfpl.net/ for more details.
  11. //
  12. #if HAVE_CONFIG_H
  13. # include "config.h"
  14. #endif
  15. #include <lol/engine.h>
  16. using namespace lol;
  17. int main()
  18. {
  19. bigint<16> i;
  20. bigint<16> x(2), y(12);
  21. auto z = x + y;
  22. printf("%d\n", (int)z);
  23. bigint<0> lol;
  24. auto w = z + lol;
  25. printf("%d\n", (int)w);
  26. }