Thursday, 12 January 2012

Program Of Ignore Manipulator In C++

#include<iostream.h>
#include<conio.h>
main()
{
clrscr();
char ch;
cout<<"enter value=";
cin.get(ch);
while (ch!='x')
{
cin.get(ch);
if(ch>='0'&&ch<='9')
cin.ignore();
else
cout.put(ch);
}
getch();
}

No comments:

Post a Comment