#include "stdio.h" struct SNo { int c; SNo * prox; SNo * ant; }; void Insere(char c, SNo * i); void main() { SNo * no; SNo * i; int j; no = new SNo; no->c = 'F'; no->prox = new SNo; no->prox->c = 'K'; no->prox->prox = NULL; Insere('A',no); Insere('L',no); Insere('E',no); for( i = no ; i != NULL ; i=i->prox ) { printf("%c",i->c); } printf("\n"); } void Insere(char c, SNo * i) { SNo * temp; SNo * novo; temp = i; while(temp->prox->c != 'I') { temp=temp->prox; } novo = new SNo; novo->c = c; novo->prox = temp->prox; temp->prox = novo; }