中国大学MOOC: 下面程序执行后的输出结果是:#include <iostream>using namespace std;#include<string.h>int main(){char str[]=" SSWLIA" , 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<<*;}return 0;}
中国大学MOOC: 下面程序执行后的输出结果是:#include <iostream>using namespace std;#include<string.h>int main(){char str[]=" SSWLIA" , 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<<*;}return 0;}
1
