1

I have a 2 very large numbers that are too large to be use in unsigned long so I put them in strings.

I want to make an operation of mod between these strings and to get a string that represent the result.

#include <string>

void main()
{
    string num1 = "123...";
    string num2 = "123...";

    string result = modStrings(num1, num2);
}

Is anything like that possible? Thanks.

Omer Eli
  • 19
  • 7
  • 1
    That is not possible with what is provided in C++ and its standard library. You'd have to write your own, or consider using one of the third party "big number" libraries. I'm partial to [calc](http://www.isthe.com/chongo/tech/comp/calc/) by Landon "Chongo" Curt Noll. – Eljay Jul 19 '19 at 15:15

0 Answers0