Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김정은
/
opensource
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
김정은
2017-09-22 12:20:25 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ad04d51176eabce09dab73bb61b357553bc92aad
ad04d511
1 parent
c726db9c
add exit_function
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
A/echo_program.cpp
A/echo_program.cpp
View file @
ad04d51
...
...
@@ -6,13 +6,20 @@ using namespace std;
int
main
(){
int
a
;
cout
<<
"입력하세요 쓰고싶은
숫자
: "
;
string
a
;
cout
<<
"입력하세요 쓰고싶은
단어
: "
;
cin
>>
a
;
cout
<<
"당신이 입력한 숫자는 "
<<
a
<<
" 입니다"
<<
endl
;
if
(
a
==
"exit"
)
exit
(
100
);
else
{
cout
<<
"당신이 입력한 단어는 <"
<<
a
<<
" >입니다"
<<
endl
;
}
return
0
;
...
...
Please
register
or
login
to post a comment