전언석

Edited Project1(exit)

1  test.cpp 1  test.cpp
2 - Project1.vcxproj -> C:\Users\User\Desktop\1\assignment2\Project1\Debug\Project1.exe 2 + Project1.vcxproj -> C:\Users\User\Desktop\4\assignment2\Project1\Debug\Project1.exe
......
1 PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0: 1 PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0:
2 -Debug|Win32|C:\Users\User\Desktop\1\assignment2\Project1\| 2 +Debug|Win32|C:\Users\User\Desktop\4\assignment2\Project1\|
......
...@@ -5,6 +5,9 @@ int main() ...@@ -5,6 +5,9 @@ int main()
5 { 5 {
6 string a; 6 string a;
7 cin >> a; 7 cin >> a;
8 + if (a == "exit")
9 + exit(100);
10 + else
8 cout << a; 11 cout << a;
9 12
10 return 0; 13 return 0;
......