朱色虫居
Pages
Home
Featured Posts
2007/03/11
遞增,遞減Sort
#include
#include
#include
using namespace std;
int main()
{
int a[] = {7,3,1,2,3,4,5};
vector v0(a,a+7);
sort(v0.begin(),v0.end()); //increamt
//sort(v0.rbegin(),v0.rend()); //decreamt
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment