김준수

exit function by C v2

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