• This project
    • Loading...
  • Sign in

임연수 / OpenSourceSW_Lab02

%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
  • OpenSourceSW_Lab02
  • echo.cpp
  • 임연수's avatar
    add exit_func · 4f0b85c7
    4f0b85c7
    임연수 authored 2018-09-28 15:41:49 +0900
echo.cpp 273 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 23 24
#include <iostream>
#include <string>
using namespace std;
int exit_func(string a)
{
	string exit = "exit";
	if(a.compare(b) == 0)
		return 0;
	else
		return 1;
}

int main()
{
	string std;
	cin >> std;
	cout << std;
	if(exit_func(std))
		;
	else
		return 0;
	return 0;
}