排序---对二维数组的排序
生活随笔
收集整理的這篇文章主要介紹了
排序---对二维数组的排序
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一直想的對二維 數組進行排序 現在 終于完成了 ?下面附上代碼
1 #include<stdio.h> 2 #include<string.h> 3 #include<math.h> 4 #include<iostream> 5 #include<algorithm> 6 #include<queue> 7 #include<vector> 8 #include<set> 9 #include<stack> 10 #include<string> 11 #include<sstream> 12 #include<map> 13 #include<cctype> 14 using namespace std; 15 int main() 16 { 17 string a[3]; 18 int n; 19 for(int i=0;i<3;i++) 20 { 21 cin>>a[i]; 22 } 23 sort(a,a+3); 24 for(int i=0;i<3;i++) 25 { 26 cout<<a[i]<<"\n"; 27 } 28 }?
轉載于:https://www.cnblogs.com/A-FM/p/5320620.html
總結
以上是生活随笔為你收集整理的排序---对二维数组的排序的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 第四周—周记
- 下一篇: eclipse通过classpath v