정대욱

exit

Showing 1 changed file with 4 additions and 0 deletions
#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 << ">> ";
}
......