enum hand { paper, rock, scissors }; typedef enum hand hand; ... 1 for rock, 2 for scissors : "); scanf("%d", &ans); switch(ans) { case 0 : return paper; ...
確定! 回上一頁