Jewon Choi

Add : Exit Function

1 /Project1/.vs/ 1 /Project1/.vs/
2 -.gitignore 2 +/Project1/x64/
......
...@@ -4,7 +4,13 @@ using namespace std; ...@@ -4,7 +4,13 @@ using namespace std;
4 4
5 int main() 5 int main()
6 { 6 {
7 - string a; 7 + while (1)
8 - cin >> a; 8 + {
9 - cout << endl << a; 9 + string a;
10 + cin >> a;
11 + cout << endl << a;
12 +
13 + if (a == "exit")
14 + break;
15 + }
10 } 16 }
...\ No newline at end of file ...\ No newline at end of file
......