Toggle navigation
Toggle navigation
This project
Loading...
Sign in
유승근
/
OSS_assignment3
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
Yuseunggeun
2020-04-03 20:44:37 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5a6aa1a0b32153e6ce2831f05cdc6c51cdc6d7f0
5a6aa1a0
1 parent
9c94b7d8
add exit function
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
hello.cpp
hello.cpp
View file @
5a6aa1a
...
@@ -4,6 +4,9 @@ int main(){
...
@@ -4,6 +4,9 @@ int main(){
4
string
data
;
4
string
data
;
5
cout
<<
"input : "
;
5
cout
<<
"input : "
;
6
cin
>>
data
;
6
cin
>>
data
;
7
+
if
(
data
==
"exit"
){
8
+
exit
(
100
);
9
+
}
7
cout
<<
"print : "
<<
data
;
10
cout
<<
"print : "
<<
data
;
8
11
9
12
...
...
Please
register
or
login
to post a comment