김준수

exit function by C

Showing 1 changed file with 14 additions and 1 deletions
#include<stdio.h>
#include<string.h>
void exitfunc()
{
char a[80];
do{
scanf("%s",a);
}while(strcmp("exit",a));
}//C
int main(){
printf("push push baby\n");
printf(" push push baby\n Type exit to exit\n");
exitfunc();
return 0;
}
......