switch语句
#include "stdio.h"
main()
{int s;
while ((s=getchar())!='\n')
}
switch (s-'2')
{case 0:
case 1:putchar (s+4);
case 2:putchar (s+4);break;
case 3:putchar (s+3);
default : putchar (s+2);break;
}
}
printf ("\n");
}
运行时输入2473回车,答案是多少?
switch (s-'2')这条语句其中的2是不是指他的码?