Special characters solution! - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Special characters solution!

meshtebmeshteb Posts: 47Member

Would you guys have an idea on how to deal with input or check whether inputhas the following special characters, i.e. read a file of text
containing a list of words and check for the occurrence
of these characters:

or - as used in the word "p"

* or * - as used in the word "r*ma"

Š or š - as used in the word "lešaša"

If a word has any of these character replace each character by the
following characters respectively:

with o^

* with e^

š with sh

I would appreciate it if you could have a short program to sort this issue out.

Let the file called words.doc (or having any extension) containing the following words.

"p r*ma lešaša"


Sign In or Register to comment.