arraylistnostl.output

来自「datastucutre and algorithms, application」· OUTPUT 代码 · 共 30 行

OUTPUT
30
字号
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 = 8
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 = 8
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  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?