/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <conio.h>

#define N 26

int selected[N] = { 0 };

void display()
{
    int i;
    putch('\r');
    for(i=0;i<N;i++) if(!selected[i]) putch('A'+i);
    putch(' ');
}

int main()
{
    int i,c;
    display();
    for(i=0;i<N;i++)
    {
        c = getch();
        selected[c-'A'] = 1;
        display();
    }
    return 0;
}
