无符号整数 问答列表

无限循环 Vs.溢出的循环?

作者:TorusWithSprinkles 提问时间:10/13/2021

我正在学习 Java 中的有符号类型与无符号类型,遇到了一个让我感到困惑的棘手示例问题: Is the following code an infinite loop? Why or why not...

如何将模板类型修改为无符号?

作者:AnnikGet 提问时间:5/2/2023

template<class T> void foo(T s) { unsigned T x = -1; //... } { int x = 129; foo(x); } 如何将模板类型...


共2条 当前第1页