Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(void)
- {
- char ch;
- int count = 1;
- while( cin.get(ch) )
- {
- if(ch == '"')
- {
- if( count == 1 )
- cout << "``";
- else if( count == 0 )
- cout << "''";
- count = 1 - count;
- continue;
- }
- cout << ch;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement