64,654
社区成员
发帖
与我相关
我的任务
分享
// hi flow control
// tell me the result and give out your reason
//
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
char j;
for (int i = 1; i < 8; ++i)
{
j = 'b';
switch (i)
{
case 1:
cout<<'1';
j = 'a';
while (j <= 'e')
case 2:
{
if (j != 'b')
case 3: ++j;
else
case 4: break;
cout<<j;
case 5: continue;
case 6: cout<<'h';
}
default:
cout<<j;
}
}
cout<<endl;
system("pause");
return 0;
}