Note跳水了# PDA - 掌中宝
h*g
1 楼
g++总是说我的14行有错,为啥?
1 #include
2 #include
3 #include
4 #include
5
6 using namespace std;
7 int main(){
8 int numbers [] ={20, -30, 10, 40, 0};
9 vector five (numbers, numbers+5);
10 int cx = count_if(numbers, numbers+5, bind1st(greater_equal(),
15));
11 cout<12 int dx = count_if(numbers, numbers+5, bind2nd(greater_equal(),
15));
13 cout<14 int ex = count_if(numbers, numbers+5, IsOdd);
15 cout<16 return 0;
17 }
1 #include
2 #include
3 #include
4 #include
5
6 using namespace std;
7 int main(){
8 int numbers [] ={20, -30, 10, 40, 0};
9 vector
10 int cx = count_if(numbers, numbers+5, bind1st(greater_equal
15));
11 cout<12 int dx = count_if(numbers, numbers+5, bind2nd(greater_equal
15));
13 cout<14 int ex = count_if(numbers, numbers+5, IsOdd);
15 cout<16 return 0;
17 }