How to handle arbitrarily large integers

后端 未结 7 889
南旧
南旧 2020-12-01 11:34

I\'m working on a programming language, and today I got the point where I could compile the factorial function(recursive), however due to the maximum size of an integer the

7条回答
  •  粉色の甜心
    2020-12-01 12:03

    There's no easy way to do it in C++. You'll have to use an external library such as GNU Multiprecision, or use a different language which natively supports arbitrarily large integers such as Python.

提交回复
热议问题