作者yilanP (Train Station)
看板C_and_CPP
标题[问题] 大数运算
时间Wed Mar 8 18:04:56 2017
开发平台(Platform): (Ex: Win10, Linux, ...)
Win10
编译器(Ex: GCC, clang, VC++...)+目标环境(跟开发平台不同的话需列出)
CodeBlock
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
问题(Question):
当我用while重复做加法时
会出乎意料的归零
喂入的资料(Input):
任意,程式码中预设的input
预期的正确结果(Expected Output):
2 2 5
错误结果(Wrong Output):
http://imgur.com/6dbFcOl.jpg
程式码(Code):(请善用置底文网页, 记得排版)
https://gist.github.com/anonymous/caf76eb0cc6477e64a33b353af5495f5
补充说明(Supplement):
每一个数字都代表十六进位,每次+3
归零似乎与数值无关让我毫无头绪...
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 180.176.219.108
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_and_CPP/M.1488967499.A.607.html
1F:→ yilanP: 我後来决定砍掉重写就好了 03/08 18:34