1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include <stdio.h> #include <string.h> int main() { char key[] = "C"; char buffer[80]=""; do { printf("ÀÓº£µðµå ÀåÄ¡¿¡ °¡Àå ¸¹ÀÌ »ç¿ëµÇ´Â ¾ð¾î´Â? "); gets_s(buffer, sizeof(buffer)); } while (strcmp(key, buffer) != 0); printf("¸Â¾Ò½À´Ï´Ù!"); return 0; } | cs |