活跃农民
- 积分
- 605
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2015-1-22
- 最后登录
- 1970-1-1
|
不知道为什么传不了图片..只好直接粘贴了,其实做出来结果是一样的..
Lab总是比Homework简单,接下来终于要到project啦~~~
DList1:
### TESTING insertFront ###
Empty list is [ ]
Inserting 9 at front.
List with 9 is [ 9 ]
Inserting 8 at front.
List with 8 and 9 is [ 8 9 ]
### TESTING removeFront ###
List with 1 and 2 is [ 1 2 ]
Removing front node.
List with 2 is [ 2 ]
Removing front node.
Empty list is [ ]
Removing front node.
Empty list is [ ]
DList2:
### TESTING insertFront ###
Empty list is [ ]
Inserting 9 at front.
List with 9 is [ 9 ]
Inserting 8 at front.
List with 8 and 9 is [ 8 9 ]
### TESTING removeFront ###
List with 1 and 2 is [ 1 2 ]
List with 2 is [ 2 ]
Empty list is [ ]
Empty list is [ ]
|
|