?? vectorlist.output
字號:
Capacity of x, y and z = 20, 2, 10
Initial size of x, y, and z = 0, 0, 0
x is empty
y is empty
Inserted 6 integers, list y should be 1 2 3 4 5 6
Size of y = 6
Capacity of y = 6
y is not empty
1 2 3 4 5 6
Testing overloaded <<
1 2 3 4 5 6
The index of 4 is 3
7 not found
Element with index 0 is 1
Element with index 3 is 4
Element 1 erased
The list is 1 3 4 5 6
Element 2 erased
The list is 1 3 5 6
Size of y = 4
Capacity of y = 6
y is not empty
Illegal index exception
Insert index must be between 0 and list size
index = -3 size = 4
w should be old y, new y has first 2 elements removed
w is 1 3 5 6
y is 5 6
y is 7 6 5 4 5 6
Ouput using forward iterators pre and post ++
7 6 5 4 5 6
7 6 5 4 5 6
Ouput using backward iterators pre and post --
6 5 4 5 6 7
6 5 4 5 6 7
Incremented by 1 list is 8 7 6 5 6 7
The reversed list is 7 6 5 6 7 8
The sum of the elements is 39
The sorted list is 5 6 6 7 7 8
The list is descending order is 8 7 7 6 6 5
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -