add scanf routine, but need to add ungetch routine for scanf