Big integer in C or C++ [closed]

。_饼干妹妹 提交于 2019-11-26 17:29:28

问题


I was working on a factorial program, and the program didn't work when trying to find the factorial of 1000. I think big integers are the solution; how do they work? (In either C or C++)


回答1:


GMP can do bigint operations for both C and C++. The documentation on that site is a good introduction, if you use the C++ classes they behave almost exactly like built-in primitive types.




回答2:


Look for the GMP. See the other question regarding this topic:

  • Handling very large Integers
  • C++ Big Integer


来源:https://stackoverflow.com/questions/4827538/big-integer-in-c-or-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!