티스토리 툴바



2007/09/06 14:36

stl vector sort

#include <vector>
#include <algorithm>

using namespace std;

bool compare(type a,type b)
{
  return a>b(비교);  
}

void function()
{
  vector<type> v;
  sort(v.begin(),v.end(),compare) ;
}

크리에이티브 커먼즈 라이선스
Creative Commons License
Trackback 0 Comment 0