摘要: #include #include #include using namespace std; int main() { int a[3] = { 1,3,2}; vectornum(a, a + 3); auto rfirst = num.rbegin(); auto rend = num.rend(); auto p = next(rfirs... 阅读全文
posted @ 2017-05-28 23:43 babyking1 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int main() { int a[5] = { 1,2,-1,3,5 }; vectornum(a, a + 5); int tar; cin >> tar; cout << distance(num.begin(), remove(num.be... 阅读全文
posted @ 2017-05-28 22:42 babyking1 阅读(92) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; int main() { int tar; cin >> tar; int a1[5] = { 1,2,3,-1,0 }; vectornum(a1, a1 + 5); vector > res; sort(num.beg... 阅读全文
posted @ 2017-05-28 22:33 babyking1 阅读(129) 评论(0) 推荐(0) 编辑