我一次性AC这道题,用时5分钟
#include<iostream>
using namespace std;
int main()
{
//freopen("xxx.in","w",stdin);
//freopen("yyy.out","r",stdout);
double n;
int cs=0;
for(int i=1;i<=6;i++)
{
cin >> n;
if(n>0)
{
cs++;
}
}
cout << cs << " positive numbers";
//fclose(stdin);
//fclose(stdout);
return 0;
}
牛逼orz