初始化c11
程序员文章站
2022-07-14 08:14:20
...
#include<iostream>
using namespace std;
int main(int argc,char** argv){
int input_num{0};
int num_sum={0};
while(cin>>input_num){
num_sum+=input_num;
}
cout<< "num_sum is "<<num_sum<<endl;
return 0;
}