[c언어] stdlib.h, time.h 랜덤 숫자 맞추기 게임, string.h 문자열 비교


[c언어] stdlib.h, time.h 랜덤 숫자 맞추기 게임, string.h 문자열 비교

[c언어] stdlib.h, time.h 랜덤 숫자 맞추기 게임, string.h 문자열 비교 #include #include #include #include #define MAX_NUMBER 100 int main() { srand((unsigned)time(NULL)); int inputNumber = 0, rightNumber, canTry = 10; char quest[1][4]; rightNumber = 1 + rand() % MAX_NUMBER; printf("%d\n", rightNumber); do { printf("1 ~ 100 까지 숫자 정답을 추측하여 보십시오 (%d번 남았습니다.) : ", canTry); scanf("%d", &inputNumber); canTry--; if (in..


원문링크 : [c언어] stdlib.h, time.h 랜덤 숫자 맞추기 게임, string.h 문자열 비교