庫函數實現元素的排序

#include<iostream> #include<string> #include <algorithm> using namespace std; int main() { string str[5]; int a[10]; for(int i=0;i<5;i++) cin>>str[i]; int n=5;     sort(str,str+5); for(int i=0;i<5;i++
相關文章
相關標籤/搜索