• This project
    • Loading...
  • Sign in

이윤동 / Assignment7

%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
  • Assignment7
  • echo_prog.cpp
  • 이윤동's avatar
    echo program · 7156082f
    7156082f Browse Files
    이윤동 authored 2017-09-22 12:17:09 +0900
echo_prog.cpp 244 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <iostream>
using namespace std;

int main(){
	char* msg;
	cout << "보낼 메시지를 입력하시오." << endl;
	cin >> msg;
	for (int i=0;i<sizeof(msg);i++){
		cout << msg[i];
	}
	cout << endl;

	if(msg == "exit"){
		exit(10);
	}

	return 0;
}