It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center
8年前关闭。
我在做一个阶乘程序,当试图找到1000的阶乘时,这个程序不起作用。我认为大整数是解决方案;它们是如何工作的?(在C或C++中)

最佳答案

GMP可以对C和C++进行bigint操作。该站点的文档是一个很好的介绍,如果使用C++类,它们的行为几乎与内置的原始类型完全相同。

关于c++ - C或C++中的大整数,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/4827538/

10-12 20:42