• This project
    • Loading...
  • Sign in

정세호 / mytest

%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
  • mytest
  • echo_program_new.cpp
  • 정세호's avatar
    push exit program from exit branch, B repository · 82e80425
    82e80425
    정세호 authored 2020-09-25 19:05:05 +0900
echo_program_new.cpp 240 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

#include <iostream>
#include <iomanip>
using namespace std;
int main() {
	string s;
	cout << "if you enter 'exit', the program will exit";
	while (true) {
		cin >> s;
		if(s=="exit"){
			break;	
		}
		cout << s << endl;
	}
	exit(100);
}