Skip to content

Commit da1fb8f

Browse files
authored
Update 001_stl_cend.cpp
1 parent 4f9f62b commit da1fb8f

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

cpp_14/001_stl_cend.cpp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
1
1+
#include <iostream>
2+
#include <set>
3+
4+
using namespace std;
5+
6+
int main ()
7+
{
8+
set<string> myset= {"Java", "C++","SQL"};
9+
10+
// 显示内容:
11+
for (auto it = myset.cbegin(); it != myset.cend(); ++it)
12+
cout <<*it << '\n';
13+
14+
return 0;
15+
}

0 commit comments

Comments
 (0)