Toggle navigation
Toggle navigation
This project
Loading...
Sign in
임연수
/
OpenSourceSW_Lab02
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
임연수
2018-09-28 15:41:49 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4f0b85c7ff71ad2bf0d4658f200c133b73cc99f4
4f0b85c7
1 parent
3b760374
add exit_func
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
echo.cpp
echo.cpp
View file @
4f0b85c
#include <iostream>
#include <string>
using
namespace
std
;
int
exit_func
(
string
a
)
{
string
exit
=
"exit"
;
if
(
a
.
compare
(
b
)
==
0
)
return
0
;
else
return
1
;
}
int
main
()
{
string
std
;
cin
>>
std
;
cout
<<
std
;
if
(
exit_func
(
std
))
;
else
return
0
;
return
0
;
}
...
...
Please
register
or
login
to post a comment