问题
填空题
下面程序的运行结果是 ______。
#include<iostream.h>
void main()
char str[]="SSSWLIA",c;
int k;
for(k=2;(c=str[k]!=’\0’;k++)
switch(c)
case’I’:++k;break;
case’l’;continue;
default;cout<<c;continue;
cout<<’*;
答案
参考答案:SWL*