임에딘

implement exit function

Showing 1 changed file with 17 additions and 4 deletions
#include <stdio.h>
void EXit()
{
exit(1);
}
int main() {
char Name[20];
printf("당신의 이름을 입력하세요: ");
gets(Name);
puts(Name);
char input[100];
while(1)
{
gets(input);
puts(input);
if (input=="exit")
EXit();
}
printf("\n");
return 0;
}
\ No newline at end of file
......