fork(2) download
  1. #include <iostream>
  2. #include <string>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. int main() {
  7. string s = "element";
  8. rotate(s.begin(),s.begin()+(s.length()-3),s.end());
  9. cout << s;
  10. }
Success #stdin #stdout 0s 4528KB
stdin
Standard input is empty
stdout
entelem