• This project
    • Loading...
  • Sign in

곽원석 / 2020gitbranch_assignment2

%ea%b7%b8%eb%a6%bc1
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
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • 2020gitbranch_assignment2
  • git_branch_assignment2
  • echo.h
  • 곽원석's avatar
    Implementation for ECHO(add to exit function) · e6853e19
    e6853e19 Browse Files
    곽원석 authored 2020-09-25 17:55:25 +0900
echo.h 252 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#pragma once
#include <iostream>
using namespace std;

void echo()
{
	cout << "Print user's input directly " << endl;
	while (1)
	{
		string any;
		cin >> any;
		if (any == "exit")
		{
			return;
		}
		else
		{
			cout << any << endl;
		}
	}
	return;
}