Guest User

Untitled

a guest
Apr 23rd, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. void replaceNewLines(string& s)
  2. {
  3. for(int x = 0; x < s.length(); x++) {
  4. if(s.at(x) == '\n') {
  5. s[x] = '|';
  6. }
  7. }
  8. }
Add Comment
Please, Sign In to add comment