#include #include "list.h" int main( void ) { int n; IntList list; while( cin >> n ) { list.insertAfter( n ); } for( list.start(); !list.atEnd(); list.advance() ) { cout << list.getData() << endl; } return 0; }