diff options
author | Priti Xavier <pritix@users.noreply.github.com> | 2020-09-29 20:50:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 14:50:47 +0200 |
commit | e07193e6b463a70a70d58bcaf2936362d9d96e75 (patch) | |
tree | bce78584e61e3938eeecef21643364360ca23fd5 /c++.html.markdown | |
parent | 6e4b3a5f315930e2c3d58969ef377577e5ef9459 (diff) |
Changed operator < to != (#4004)
Diffstat (limited to 'c++.html.markdown')
-rw-r--r-- | c++.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c++.html.markdown b/c++.html.markdown index 626da194..948b52ec 100644 --- a/c++.html.markdown +++ b/c++.html.markdown @@ -915,7 +915,7 @@ ST.erase(20); // Will erase element with value 20 // Set ST: 10 30 // To iterate through Set we use iterators set<int>::iterator it; -for(it=ST.begin();it<ST.end();it++) { +for(it=ST.begin();it!=ST.end();it++) { cout << *it << endl; } // Output: |