No, the proggie that i posted does this already.
It does? If it does, then your problem has been solved. I think it does not.
The problem with "find_first_of" it checks only one character not a sequence of characters:
What sequence of characters do you want to find?
And "find" doesnt work with ifstream. Now you see where is my problem.
Recall that you have read the line into a string.
EDIT:
I have this feeling that you changed your requirements midway through this thread. You need to get your requirements straight if you want people to help you coherently.
I asked you if given this input:
Code:
hello
.world
123 abc
5678
You wanted this output:
Code:
Hello
.World
123 Abc
5678
You agreed. But you also wrote that: "I wanna choose two characters like ". ." two dots for example and uppercase the letter that comes right after."
So, you have a choice. Given this input:
Code:
hello
.world
123 abc
5678
..def
..ghi
Do you want:
Code:
hello
.world
123 abc
5678
..Def
..ghi
or
Code:
hello
.world
123 abc
5678
..Def
..Ghi
or
Code:
Hello
.World
123 Abc
5678
..Def
..Ghi
?