fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main() {
  5. std::string s("mamku;v;jopu;ipal");
  6. for (int i = 0; i < s.size(); ++i)
  7. std::cout << ((';' == s[i]) ? '\n' : s.at(i));
  8. std::cout << std::endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 3228KB
stdin
Standard input is empty
stdout
mamku
v
jopu
ipal