@gooseim
510 / 414 / 37
Регистрация: 23.09.2010
Сообщений: 1,159
|
14.10.2011, 14:04
|
|
C++ | 1
| std::vector< int > array; |
|
или
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| #ifndef BUCKETSORT_H
#define BUCKETSORT_H
#include <vector>
using std::vector;
class BucketSort
{
public:
explicit BucketSort( const int = 10 );
void sort();
void print() const;
private:
vector< int > array;
};
#endif // BUCKETSORT_H |
|
или
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| #ifndef BUCKETSORT_H
#define BUCKETSORT_H
#include <vector>
using namespace std;
class BucketSort
{
public:
explicit BucketSort( const int = 10 );
void sort();
void print() const;
private:
vector< int > array;
};
#endif // BUCKETSORT_H |
|
1
|