Showing
1 changed file
with
8 additions
and
7 deletions
| 1 | -#include<stdio.h> | 1 | + #include<stdio.h> |
| 2 | -#include<string.h> | 2 | + #include<string.h> |
| 3 | 3 | ||
| 4 | -void exitfunc() | 4 | + void exitfunc() |
| 5 | -{ | 5 | + { |
| 6 | char a[80]; | 6 | char a[80]; |
| 7 | 7 | ||
| 8 | do{ | 8 | do{ |
| 9 | scanf("%s",a); | 9 | scanf("%s",a); |
| 10 | }while(strcmp("exit",a)); | 10 | }while(strcmp("exit",a)); |
| 11 | -}//C | 11 | + }//C forgot branch |
| 12 | 12 | ||
| 13 | -int main(){ | 13 | + int main(){ |
| 14 | + printf("push push baby\n"); | ||
| 14 | printf(" push push baby\n Type exit to exit\n"); | 15 | printf(" push push baby\n Type exit to exit\n"); |
| 15 | 16 | ||
| 16 | exitfunc(); | 17 | exitfunc(); |
| 17 | 18 | ||
| 18 | return 0; | 19 | return 0; |
| 19 | -} | 20 | + } | ... | ... |
-
Please register or login to post a comment