MY name is ruhul amin

ISLAMIC UNIVERSITY OF KUSHTIA

Monday, March 4, 2013

uva solve problem 272 tex quotex

#include <iostream>
#include<string.h>
#include<stdio.h>
using namespace std;
int main()
 {

    int c;
    char ch;
    c=1;
    while((ch=cin.get())!=EOF)
    {
         if(ch=='"')
          {
          c=c+1;
          if(c%2==0)
          cout<<"``";
          else
          cout<<"''";
          }
          else
          cout<<ch;
    }
    return 0;
}

No comments:

Post a Comment