emmm还是不明白输入输出流是什么
1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int main(){ 5 string s; 6 while(cin>>s){ 7 int a[10000]; 8 int it=0; 9 for(int i=0;i<s.length();++i){ 10 if(s[i]=='5') s[i]=' '; 11 } 12 stringstream ss(s); 13 int t; 14 while(ss>>t){ 15 a[it++] = t; 16 } 17 sort(a+0,a+it); 18 for(int i=0;i<it;++i){ 19 i==0? cout<<a[i] : cout<<" "<<a[i]; 20 } 21 cout<<endl; 22 } 23 return 0; 24 }