#include <stdio.h>
#include <string.h>
#include <ctype.h>
int ok(char c)
{
return (('A' <= c) && (c <= 'Z')) || (('a' <= c) && (c <= 'z'));
}
int main()
{
char str[110];
char ans[110];
int i, j, h, t = 0, l;
int k, mx = 0;
gets(str);
l = strlen(str);
for (i = 0; i < l; i++)
{
if (!ok(str[i]))
{
ans[t++] = str[i];
continue;
}
j = i;
while (ok(str[j]))
{
j++;
}
for (h = j - 1; h >= i; h--)
{
ans[t++] = str[h];
}
i = j - 1;
}
ans[l] = 0;
printf("%s", ans);
}
이 코드에서 continue 를 만나면 j=i 행으로 가는건가요 아니면 for 반복문으로 가는건가요?
해당 댓글은 삭제되었습니다.
감사합니다
만약 전자면 continue가 쓸모 없는 명령어가 되잖아