|
|
1.1 root 1: #include "String.h"
2: #include "list.h"
3:
4: listdeclare(String)
5:
6: int bigger(String&, String&);
7:
8: main()
9: {
10: String s;
11: String_list myList;
12: /* input */
13: while (cin >> s)
14: myList.put(s);
15: myList.sort(bigger);
16: /* print result */
17: cout << myList << "\n";
18: }
19:
20: int
21: bigger(String& a, String& b)
22: {
23: return a < b;
24: }
25:
26: listimplement(String)
27: listoutimplement(String)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.