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