Problem1585--线性链表建立及正序输出

1585: 线性链表建立及正序输出

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 3  Solved: 3
[Submit] [Status] [Web Board] [Creator:]

Description

输入一个正整数序列,遇负数时停止,建立一个线性链表存储读入的数据,将各个元素按顺序输出。

Sample Input Copy

1 2 3 4 5 -1

Sample Output Copy

1 2 3 4 5

Source/Category