📄 10viii.cpp
字号:
// wordsort.cpp Sort and output a list of 10 words from a list provided by
// the user.
#include <iostream>
#include <fstream>
#include <string>using namespace std;const int SIZE =10;
void Sort (string[], int);
void main ()
{ string words[SIZE];
int n;
for (n=0; n<SIZE; n++) // input the list of words
cin >> words[n];
Sort (words, SIZE); // sort the list
cout << "sorted words are:" << endl;
for (n=0; n<SIZE; n++) // output the list
cout << words[n] << endl;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -