C语言小数除以一个数整数然后取余.语言小数除以一个数整数然后取余,算法里面先用float 申请小数单位,用int 申请整数单位不能用%来算啊出现error C2296: '%' : illegal, left operand has type 'float' 的

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/11 23:22:27
C语言小数除以一个数整数然后取余.语言小数除以一个数整数然后取余,算法里面先用float 申请小数单位,用int  申请整数单位不能用%来算啊出现error C2296: '%' : illegal, left operand has type 'float'  的

C语言小数除以一个数整数然后取余.语言小数除以一个数整数然后取余,算法里面先用float 申请小数单位,用int 申请整数单位不能用%来算啊出现error C2296: '%' : illegal, left operand has type 'float' 的
C语言小数除以一个数整数然后取余.
语言小数除以一个数整数然后取余,算法里面先用float 申请小数单位,用int 申请整数单位不能用%来算啊出现error C2296: '%' : illegal, left operand has type 'float' 的错误,那该怎么求啊.

C语言小数除以一个数整数然后取余.语言小数除以一个数整数然后取余,算法里面先用float 申请小数单位,用int 申请整数单位不能用%来算啊出现error C2296: '%' : illegal, left operand has type 'float' 的
%号两端必须是整型数据,不能是float型.