Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김다솔
/
lab2-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
김다솔
2020-09-25 16:02:34 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fc2578de4228c85e8d374afaccf9ef69e10d5119
fc2578de
1 parent
4af6ab93
exit function added
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
EchoProgram.cpp
EchoProgram.cpp
View file @
fc2578d
...
...
@@ -2,17 +2,29 @@
#include<iostream>
using
namespace
std
;
void
Exit
(
string
words
)
{
if
(
words
==
"exit"
)
{
exit
();
}
return
;
}
void
EchoProgram
()
{
string
words
;
cout
<<
"Enter what you want to say : "
;
cin
>>
words
;
Exit
(
words
);
cout
<<
"
\n\"
"
<<
words
<<
"
\"\n\n
"
;
return
;
}
int
main
()
{
while
(
1
)
...
...
Please
register
or
login
to post a comment