#include <iostream>
using namespace std;//从cin中读取一组数,输出其和
int main(){
double sum = 0;
double value = 0;
while(cin>>value)//不断输入但有次数?为什么可能是超过了Int,经试验确实Int 有范围这个范围
{
sum+=value;
cout<<"sum is:"<<sum<<endl;
}
system("pause");
return 0;
}
int 和 Double 限制了输出数据的范围