PDA

Click to See Complete Forum and Search --> : [RESOLVED] a difficult problem


met0555
Aug 15th, 2006, 05:50 AM
is there any way to scan the text inputed by user say his name
and then change the some alphabets in it to some other form

like suppose i entered the text


very hard

and the output shud be

7Ery h4rd

that means change every alphabet 'v' to '7'
,
make 'e' = 'E' (capital)

and

change every alphabet 'a' in = '4'.

-----
in c++.
thanks

-------
any help will be greatly appreciated

jmcilhinney
Aug 15th, 2006, 05:57 AM
myString = myString.Replace('v', '7');

mar_zim
Aug 15th, 2006, 07:04 PM
If you have a lot character to change then I suggest you to use HashTable.