c++. 求大神!计数器问题,实现5个一输出

2025-12-18 01:43:47
推荐回答(1个)
回答1:

在double k;后面加一行
int count=0;
然后在if(j>k)的花括号里面现在语句的后面添加
count++;
if(count%5==0)
cout<