Showing
1 changed file
with
22 additions
and
0 deletions
exit.cpp
0 → 100644
| 1 | +#include <iostream> | ||
| 2 | +using namespace std; | ||
| 3 | + | ||
| 4 | +int main() { | ||
| 5 | + while (true) { | ||
| 6 | + string n; | ||
| 7 | + cin >> n; | ||
| 8 | + if (n == "exit") { | ||
| 9 | + exit(0); | ||
| 10 | + } | ||
| 11 | + } | ||
| 12 | + | ||
| 13 | +} | ||
| 14 | + | ||
| 15 | +//#include <iostream> | ||
| 16 | +//using namespace std; | ||
| 17 | +// | ||
| 18 | +//int main() { | ||
| 19 | +// string n; | ||
| 20 | +// cin >> n; | ||
| 21 | +// cout << n; | ||
| 22 | +//} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment