arraylistwithiterator.output

来自「这是数据结构、算法与应用-C++语言描述的代码」· OUTPUT 代码 · 共 13 行

OUTPUT
13
字号
Inserted 6 integers, list y should be 1 2 3 4 5 6
Size of y = 6
Capacity of y = 8
Ouput using forward iterators pre and post ++
1  2  3  4  5  6  
1  2  3  4  5  6  
Ouput using backward iterators pre and post --
6  5  4  3  2  1  
6  5  4  3  2  1  
Incremented by 1 list is 2  3  4  5  6  7  
The reversed list is 7  6  5  4  3  2  
The sum of the elements is 27

⌨️ 快捷键说明

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