填空题
以下程序运行时输出到屏幕的结果中第一行是
1,第二行是
2。
#include<iostream.h>
void main(void)
{
char *s="2473",c;
while(c=*s++)
{
switch(c-"2")
{
case 0:
case 1:
cout<<(char)(c+4)<<"/t";
case 2:
cout<<(char)(c+4)<<"/t";
break;
case 3:
cout<<(char)(c+3)<<"/t";
default:
cout<<(char)(c+2)<<"/n";
}
}
cout<<endl;
}