#include "stdio.h" struct SNo { int c; SNo * prox; SNo * ant; }; SNo * l; SNo * v; SNo * c; void Insere(SNo * * fim, char c); void main() { int i; SNo * no; for( i = 'A' ; i < 'A'+26; ++i) { Insere(&l,i); } for( no = l ; no != NULL ; no=no->ant ) { printf("%c ",no->c); if( no->c == 'A' || no->c == 'E' || no->c == 'I' || no->c == 'O' || no->c == 'U' ) { Insere(&v,no->c); } else { Insere(&c,no->c); } } printf("\n"); for( no = v ; no != NULL ; no=no->ant) { printf("%c ",no->c); } printf("\n"); for( no = c ; no != NULL ; no=no->ant) { printf("%c ",no->c); } printf("\n"); } void Insere(SNo * * fim, char c) { SNo * no; no = new SNo; no->c = c; no->prox = NULL; no->ant = *fim; *fim = no; }