gpt4 book ai didi

c - 二进制表达式 ('double' 和 'double' 的无效操作数)

转载 作者:太空宇宙 更新时间:2023-11-04 02:32:48 26 4
gpt4 key购买 nike

<分区>

这不是我的全部代码,但我一直收到此错误:二进制表达式的无效操作数

printf("How much change is owed?\n");
float change= GetFloat();
float roundf(float change);
change*=100;
int rem;

while (change>0)

{
if(change>=0.25)
rem=change % 0.25; > error, saying that this is a double????
}
printf ("%d\n", rem); I need the modulo , it is not working
return 0;

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com