Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (auto it = s.begin(), end = s.end(); it != end; ++it) {
- std::cout << "One character: " << *it << "\n";
- *it = '*';
- }
- std::for_each(s.begin(), s.end(), [](char & c) {
- std::cout << "One character: " << c << "\n";
- c = '*';
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement