Showing
1 changed file
with
15 additions
and
0 deletions
main.cpp
0 → 100644
1 | +#include <iostream> | ||
2 | +#include <string> | ||
3 | +using namespace std; | ||
4 | + | ||
5 | +int main() | ||
6 | +{ | ||
7 | + string input; | ||
8 | + | ||
9 | + cout << "If you enter ¡®exit¡¯, the program will exit" << endl; | ||
10 | + cin >> input; | ||
11 | + while (input != "exit") | ||
12 | + cin >> input; | ||
13 | + | ||
14 | + return 0; | ||
15 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment