Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정대욱
/
Assignment2and3
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 21:02:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
54f4952061c314810b4b15bab8a30a045f41d88a
54f49520
1 parent
e066ed3c
exit
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
echo.cpp
echo.cpp
View file @
54f4952
#include <iostream>
#include <cstring>
int
main
()
{
char
buffer
[
256
];
std
::
cout
<<
"Hello! Please enter some text:
\n
>> "
;
while
(
std
::
cin
>>
buffer
)
{
if
(
strcmp
(
buffer
,
"exit"
)
==
0
)
break
;
std
::
cout
<<
buffer
<<
std
::
endl
;
std
::
cout
<<
">> "
;
}
...
...
Please
register
or
login
to post a comment