是否有g ++警告或其他工具可以识别整数除法(截断为零)?我有成千上万行代码进行计算,不可避免地会出现数值错误,这通常是由于需要定位的"float = int/int".我需要一种合理的方法来找到它们.
c++ integer-division
c++ ×1
integer-division ×1