#include #include #include "List.h" void main( int argc, char * argv[] ) { List L; Listinit( &L ); while ( 1 ) { printf( "Forneça comando [irq] : " ); int val; char ch; scanf( " %c", &ch ); switch( ch ) { case 'i': scanf( " %d", &val ); Listinsert( &L, val ); break; case 'r': printf( "%d\n", Listremove( &L ) ); break; case 'q': exit( 0 ); } Listprint( L ); puts(""); } }