#include "stdio.h"
main()
{ char c;
c=getchar();getchar();
switch(c)
{ case 'a': case'A'
printf("Ada,Algol?\n");
c=getchar();getchar();
switch(c)
{ case'd':
case 'D':
printf("Ada\n");
break;
case'l':
case'L':
printf("Algol \n"); break;
default:
printf("input error \n");
break;
} break;
case'b':
case'B':
printf("Basic,BcDl? \n"); c=getchar();getchar();
switch(c)
{ case'a':
case "A':
printf("Basic \n"); break;
case 'c':
case'C':
printf("BCDL \n"); break;
default: printf(:input error \n"); break ;
} break;
case 'c':
case 'C':
printf("C,Cobol? \n");
c=getchar();getchar();
switch(c)
{ case 'c':
case 'C':
printf("C \n"); break;
case 'o':
case 'O':
printf("Cobol \n"); break;
default: printf(:input error \n"); break ;
} break;
defauit:
printf("input error \n"); break;
}
}
写出来给大家看看,怎么这个论坛没有人发帖呀,版主在干什么去了呀?
[此贴子已经被作者于2004-05-17 11:43:18编辑过]