Guest User

Untitled

a guest
Feb 24th, 2012
435
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (auto it = s.begin(), end = s.end(); it != end; ++it) {
  2.     std::cout << "One character: " << *it << "\n";
  3.     *it = '*';
  4. }
  5.  
  6. std::for_each(s.begin(), s.end(), [](char & c) {
  7.     std::cout << "One character: " << c << "\n";
  8.     c = '*';
  9. });
RAW Paste Data