View Single Post
  #3 (permalink)  
Old February 26th, 2005, 12:20 PM
pinkuisadear pinkuisadear is offline
Authorized User
 
Join Date: Feb 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this modification might solve ur prob

int main()
{

 char c, colon=',';
 ch= cin.get();
 while (ch = cin.get())
  {
    if (ch == colon)
    {
        ch ='.';
        ch=cin.get();
        if (ch == 'a')
           {
             ch=cin.get();
             if (ch=='n')
             {
              ch=cin.get();
              if (ch=='d')
                {
                 cin.ignore();
                 }
               }
            }
      }
     cout << ch;
   }
}



punkaj
Reply With Quote