Created
October 21, 2020 11:16
-
-
Save GiangHoGoVap/5bf0670b97441da712abb7278237ab12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main() | |
| { | |
| FragmentLinkedList<int> test(5); | |
| for (int i = 0; i < 20; i++) | |
| { | |
| test.add(i, i * i + 10); | |
| } | |
| cout << test.toString() << endl; | |
| //FragmentLinkedList<int>::Iterator it = test.begin(); | |
| FragmentLinkedList<int>::Iterator it = test.end(2); | |
| it.remove(); | |
| //FragmentLinkedList<int>::Iterator it = test.end(); | |
| it++; | |
| for ( ; it !=test.end() ; it++) | |
| { | |
| cout << *it << " "; | |
| } | |
| cout << endl; | |
| for (it = test.begin(); it != test.end(); it++) | |
| { | |
| cout << *it << " "; | |
| } | |
| return 0; | |
| } |
GiangHoGoVap
commented
Oct 27, 2020
Author

Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment