Created
October 24, 2020 16:25
-
-
Save GiangHoGoVap/d679e31fd588108d3487a6becb76e603 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> List; | |
| List.add(0); | |
| List.add(100); | |
| List.removeAt(0); | |
| List.removeAt(0); | |
| cout << List.toString() << "\n"; | |
| List.clear(); | |
| List.add(0); | |
| List.add(100); | |
| List.removeItem(0); | |
| List.removeItem(100); | |
| cout << List.toString() << "\n"; | |
| List.clear(); | |
| List.add(0); | |
| List.add(100); | |
| List.clear(); | |
| cout << List.toString() << "\n"; | |
| List.add(0); | |
| List.add(100); | |
| auto it = List.begin(); | |
| it.remove(); | |
| it++; | |
| it.remove(); | |
| cout << List.toString() << "\n"; | |
| 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