- 论坛徽章:
- 0
|
各位,不好意思,我想问一个问题,还请各位帮忙
上面的例子是只有
test.c和gvec.h文件??
那 怎么编译得出结果呢,
我不知道怎么编译,
怎么得到下面的结果???
CODE:[Copy to clipboard]
vi2:
20 11 16 10 3 6 0 18 12 17 12 11 18 2 14 16 18 1 3 1 11
vi2 after sorting in ascending order:
20 0 1 1 2 3 3 6 10 11 11 11 12 12 14 16 16 17 18 18 18
vi2:
20 11 16 10 3 6 0 18 12 17 12 11 18 2 14 16 18 1 3 1 11
vi2 after sorting in descending order:
20 18 18 18 17 16 16 14 12 12 11 11 11 10 6 3 3 2 1 1 0
vvi:
7
20 11 16 10 3 6 0 18 12 17 12 11 18 2 14 16 18 1 3 1 11
14 16 10 3 6 0 18 12 17 12 11 18 2 14 16
13 11 10 3 6 0 18 12 17 12 11 18 2 14
12 11 16 3 6 0 18 12 17 12 11 18 2
11 11 16 10 6 0 18 12 17 12 11 18
10 11 16 10 3 0 18 12 17 12 11
9 11 16 10 3 6 18 12 17 12
vi,vi2:
20 11 16 10 3 6 0 18 12 17 12 11 18 2 14 16 18 1 3 1 11
20 18 18 18 17 16 16 14 12 12 11 11 11 10 6 3 3 2 1 1 0
vi,vi2 after parallel sorting according to vi's descending order:
20 18 18 18 17 16 16 14 12 12 11 11 11 10 6 3 3 2 1 1 0
20 14 3 11 12 3 18 6 12 11 18 11 0 18 16 17 1 10 2 1 16 |
|