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
seungmi
2019-10-04 15:00:21 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1627eb29af6fee38b60e91038d40a8f318830d01
1627eb29
1 parent
0313a58c
“If you enter ‘exit’, the program will exit”
g
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
exit.cpp
exit.cpp
0 → 100644
View file @
1627eb2
#include <iostream>
#include <string>
using
namespace
std
;
int
main
()
{
string
a
;
cout
<<
"If you enter 'exit', the program will exit"
<<
endl
;
cin
>>
a
;
if
(
a
==
"exit"
)
exit
(
0
);
return
0
;
}
\ No newline at end of file
Please
register
or
login
to post a comment