GSI

stl vector sort

STL 2007. 9. 6. 14:36 |

#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) ;
}

Posted by gsi
: