• This project
    • Loading...
  • Sign in

송민석 / HW_2

%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
  • HW_2
  • exit.cpp
  • 송민석's avatar
    Added exit.cpp · 2dea86b9
    2dea86b9
    송민석 authored 2022-03-31 14:37:24 +0900
exit.cpp 258 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 str;
    while(1){
        cout << "If you want exit, Input \"exit\" : ";
        cin >> str;
        if(str == "exit"){
            exit(100);
        }
    }
    return 0;
}