Toggle navigation
Toggle navigation
This project
Loading...
Sign in
안형준
/
OS_lab4_assignment6
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
안형준
2018-09-28 11:43:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3440129ca16c7f7f11f80f32ff6d9c792b87fdfe
3440129c
1 parent
ed07a547
add exit, and loop
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
EchoProgram/main.cpp
EchoProgram/main.cpp
View file @
3440129
...
...
@@ -4,13 +4,23 @@ using namespace std;
int
main
()
{
while
(
1
)
{
string
message
;
cout
<<
"input your message : "
;
getline
(
cin
,
message
);
if
(
message
==
"exit"
)
{
cout
<<
"exit program!"
<<
endl
;
system
(
"pause"
);
return
0
;
}
cout
<<
"your message :"
<<
message
<<
endl
;
}
system
(
"pause"
);
...
...
Please
register
or
login
to post a comment