spelling a text

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
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
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,

hai ca ai fost tare la faza asta andrule..cu oula si cu faina...
trebuie sa recunosc ca sunt disperat cand nu imi iese ceva si scriu numai prostii...
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.