Advertisement
Guest User

Referência para 272 (Luiza)

a guest
Feb 27th, 2012
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. bool op=false;
  4. char tmp;
  5.  
  6. int main() {
  7.     while (scanf("%c", &tmp)!=EOF) {
  8.         if (tmp=='"') {
  9.             if (op) printf("''");
  10.             else printf("``");
  11.            
  12.             op=!op;
  13.         }
  14.         else printf("%c", tmp);
  15.     }
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement