Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대욱
/
test01
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
김대욱
2019-10-04 22:23:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
482c145536b41b038717483fc13e5118e96f3708
482c1455
1 parent
8b714c7f
exit function
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
Project1/1.cpp
Project1/1.cpp
View file @
482c145
#include <iostream>
#include <string>
bool
exit
(
string
a
)
{
if
(
a
==
"exit"
)
return
1
;
else
return
0
;
}
using
namespace
std
;
int
main
()
{
...
...
@@ -8,6 +14,9 @@ int main() {
string
a
;
cout
<<
"출력하고 싶은 것을 입력하시오 : "
;
cin
>>
a
;
if
(
exit
(
a
))
{
break
;
}
cout
<<
endl
<<
"입력한 글자는 : "
<<
a
<<
endl
;
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment