#include
using namespace std;
int main()
{
int positive, negative;
positive = negative = 0;
double input;
cin>>input;
while(0 != input)
{
if(input > 0)
++ positive;
else
++ negative;
cin>>input;
}
cout<<"正数个数:"<
}
注意:各数字之间要用空格或回车或制表符隔开
我已在VC中调试并运行正确