Hello. I'm currently working on a project its a database project and i'm the one assign in adding names on the database.

For example:
when run in c++

Huston, Cher A.
Surname First name M.i.

what i want to do is that c++ would automatically delete the '.' when the user input a '.' and when view in the text file it would be automatically delete, when viewed in the text file it would not have 'A..'. I'm planning to use a function with nested-ifs (is this right?) don't know where to start or just give me a hint on how to do it.

Thank you very much! :D

Can you please post the code which you tried?

If not yet tried then I suggest you can have a glance at std::string .replace function. It gets you job done. :)