标签:str namespace name ext clu col turn cst out
1 #include <iostream> 2 #include <cstdlib> 3 using namespace std; 4 5 int main() 6 { 7 int *data, n, x, y; 8 cin>>n; 9 10 data = (int*)malloc(n*sizeof(int)); 11 12 for (int i = 0; i < n; ++i) 13 { 14 cin>>data[i]; 15 } 16 17 cin>>x>>y; 18 int k = 0; 19 20 for (int i = 0; i < n; ++i) 21 { 22 if(data[i] <= y && data[i] >= x) 23 { 24 continue; 25 } 26 data[k++] = data[i]; 27 } 28 29 for (int i = 0; i < k; ++i) 30 { 31 cout<<data[i]<<" "; 32 } 33 return 0; 34 }
标签:str namespace name ext clu col turn cst out
原文地址:https://www.cnblogs.com/Ghost4C-QH/p/10678507.html