#include <stdio.h>
#include <string.h>
#define LEN 16
int main(void)
{
char str1[LEN] = " ";
char str2[LEN] = " ";
static char *direction[] = {"キタ", "ホクセイ", "ニシ", "ナンセイ", "ミナミ", "ナントウ", "ヒガシ", "ホクトウ"};
static char *mode[] = {"mode:8", "mode:16"};
int num = 0;
int m = 0;
for(;;)
{
scanf("%d", &num);
strcpy(str1, direction[num]);
if (m == 1)
{
strcpy(str2, mode[m]);
}
else
{
strcpy(str2, mode[m]);
}
printf("%s\n", str2);
printf("%s\n", str1);
}
return 0;
}
0 件のコメント:
コメントを投稿