Toggle navigation
Toggle navigation
This project
Loading...
Sign in
송민석
/
Homework_2
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
송민석
2022-03-31 14:58:48 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d6f603779b3ae20b12ea219c42ad9d5797038827
d6f60377
1 parent
6acaf061
Added exit func in echo.cpp
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
echo.cpp
echo.cpp
View file @
d6f6037
...
...
@@ -5,10 +5,14 @@ using namespace std;
int
main
(){
string
str
;
while
(
1
){
cout
<<
"Implements echo program
\n
Input >> "
;
cout
<<
"Implements echo program
\n
"
;
cout
<<
"If you want exit, Input
\"
exit
\"
: "
;
cin
>>
str
;
cout
<<
"Output >> "
<<
str
<<
endl
;
if
(
str
==
"exit"
){
exit
(
100
);
}
else
cout
<<
"Output >> "
<<
str
<<
endl
;
}
return
0
;
}
...
...
Please
register
or
login
to post a comment