Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdtr1c++.h>
- using namespace std;
- int main()
- {
- freopen("cmntin.txt","r",stdin);
- freopen("cmnto.txt","w",stdout);
- char ch;
- bool t=0;
- while(cin>>ch)
- {
- t=0;
- if(ch=='/'){
- cin>>ch;
- if(ch=='*')
- {
- while(cin>>ch)
- {
- if(ch=='*'){
- cin>>ch;
- if(ch=='/')
- t=1;
- }
- if(t)
- break;
- }
- }
- if(t==0)
- cout<<'/'<<ch;
- }
- else
- cout<<ch;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement