• This project
    • Loading...
  • Sign in

송재혁 / gitbranch_assginment2

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • gitbranch_assginment2
  • echo.cpp
  • 송재혁's avatar
    echo program(exit included) · fd258a5c
    fd258a5c
    송재혁 authored 2020-09-25 15:23:15 +0900
echo.cpp 265 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <iostream>
#include <string>
using namespace std;

int main()
{
	string input;
	cout << "If you enter 'exit', the program will exit." << endl;
	getline(cin, input);
	if (input == "exit")
		return 0;
	else
		cout << "Input : " << input << endl;
	return 0;
}