Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I/O question

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hello
how can i make a program that can put "+" in front of every
special character(/\*#@) ?
 
I assume you are doing this in a string.
Just do a Substring of the String up to the first special char. Then concat "+". Recursively repeat this process on the rest of the string. Then when you break out of your recursion in your terminating case(when there are no more special characters left)concatonize the string back together. It's pretty simple, but if you need some pseudo code just ask. Lotsa luck. MY[red]enigma[/red]SELF:-9
myenigmaself@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top