Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이종규
/
newTest
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
JKL
2021-09-24 14:13:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
da5613424f48633b9c2eaf565324972cdab06aab
da561342
1 parent
cfa677d2
Exit program
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
B/exit.cpp
B/exit.cpp
0 → 100644
View file @
da56134
#include<iostream>
#include<string>
using
namespace
std
;
int
main
()
{
string
text
;
cout
<<
"Please enter the sentence..."
<<
endl
<<
endl
;
cout
<<
": "
;
cin
>>
text
;
if
(
text
==
"exit"
)
exit
(
100
);
else
cout
<<
endl
<<
text
<<
endl
;
return
0
;
}
\ No newline at end of file
Please
register
or
login
to post a comment