lexicographical_compare()按字典序比较函数用法示例(字符串排序)

///////////////////////////////////////////////////////////////////

output:

1 2 3 4 5 7
1 2 3 4 5
1 2 3 4 5 2 0
1 2 3 4 5 2
1 2 3 4 5 2 0
1 2 3 4 5 7
1 2 3 4 5 2
1 2 3 4 5

1 2 3 4 5
1 2 3 4 5
1 2 3 4 5 2
1 2 3 4 5 2
1 2 3 4 5 2 0
1 2 3 4 5 2 0
1 2 3 4 5 7
1 2 3 4 5 7
Press any key to continue

posted on 2011-01-24 00:05  几百人有爱  阅读(444)  评论(0编辑  收藏  举报