Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김준수
/
exp4_assignment
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김준수
2019-10-04 19:30:53 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c57b4cb87baa18ca54d4f84b28e37222b7b0953e
c57b4cb8
1 parent
33d200c1
exit function by C v2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
echo.c
echo.c
View file @
c57b4cb
#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
;
}
...
...
Please
register
or
login
to post a comment