spelling a text

Feb 3, 2008 at 9:53am
Please help me to spell the following text:
"Pentru a realiza blatul de tort se amesteca: faina , ouale, margarina , sarea si celelalte ingrediente.\n"
I have to remove the blank space ' ' before the comma','.
Thank you in advance
Feb 3, 2008 at 11:01pm
I do not follow what your trying to say. Maybe if you gave an example of what you want your program to do people can assist you better.
Last edited on Feb 3, 2008 at 11:02pm
Feb 4, 2008 at 9:27am
Dear dolorx
My problem was how to erase a blank space which is place in front of a comma ',' in a text. Let me translate the text in english to be more familiar:

" To make a cake you need: flour , eggs, butter , salt and the other ingredients".

The correct text should be:

" To make a cake you need: flour, eggs, butter, salt and the other ingredients".

You can see that the comma is put correct after the word "eggs".
Ok I hope you understand me, finally I resolved the code Ill write you but now Im not at my computer maybe later .
Thank you a lot for your assistance,

Feb 4, 2008 at 10:58am
hai ca ai fost tare la faza asta andrule..cu oula si cu faina...
Feb 4, 2008 at 11:59am
trebuie sa recunosc ca sunt disperat cand nu imi iese ceva si scriu numai prostii...
Feb 4, 2008 at 5:04pm
Read http://www.linuxtopia.org/online_books/programming_books/c++_practical_programming/c++_practical_programming_060.html
for some examples of string replacement.

In your program, you want to replace " , " with ", ".

Hotaru
Topic archived. No new replies allowed.