I have already made a code that makes words into pig latin. For those of you who don't know what pig latin is then not a thing to worry. Now suppose I have
hello!
with an exclamation mark. The pig-latin for this would be ello!-hay. I wan't that exclamation to be towards the end like "ello-hay!.I can't seem to figure out how to do this. I have a blurry idea but not a definite idea. I'm thinking of using a string function find?...but don't know how to implement it. If I'm still not clear on what I'm looking for then please ask me as I will post on my code too!
I assume you strip the word down to characters. Now, just check if the char you have is a special one like ! ? ; : etc... Only out put up to the last char before it. Then at the end print the special character.