Search found 4 matches
- Wed Aug 15, 2007 11:49 am
- Forum: Volume 112 (11200-11299)
- Topic: 11209 - Be Together Again and Forever
- Replies: 9
- Views: 4505
- Sat Jan 28, 2006 4:47 am
- Forum: C++
- Topic: need help for STL sort inside a class
- Replies: 6
- Views: 3397
- Fri Jan 27, 2006 1:18 pm
- Forum: C++
- Topic: need help for STL sort inside a class
- Replies: 6
- Views: 3397
- Thu Jan 26, 2006 12:09 pm
- Forum: C++
- Topic: need help for STL sort inside a class
- Replies: 6
- Views: 3397
need help for STL sort inside a class
Hi, i tried to sorting an array a, with a condition s[a ] <= s[a[j]] (i<j), s is given. Both a and s is contained inside a class. You can take a look at the sample source code.
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class gg{
public:
bool cmp( int a, int ...
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class gg{
public:
bool cmp( int a, int ...