YJ-062\Administrator

exitt prog

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
No preview for this file type