Toggle navigation
Toggle navigation
This project
Loading...
Sign in
양효빈
/
assignment2
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
양효빈
2020-09-25 16:47:41 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8d41a192f3db05e1a5b17bac5154fe128676ba8d
8d41a192
1 parent
5786994c
Implemented exit
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
exit.cpp
exit.cpp
View file @
8d41a19
...
@@ -5,6 +5,7 @@ int main()
...
@@ -5,6 +5,7 @@ int main()
5
{
5
{
6
string
s
;
6
string
s
;
7
cin
>>
s
;
7
cin
>>
s
;
8
+
if
(
s
==
"exit"
)
exit
(
0
);
8
cout
<<
s
;
9
cout
<<
s
;
9
return
0
;
10
return
0
;
10
}
11
}
...
...
Please
register
or
login
to post a comment