fork(5) download
  1. #include <iostream>
  2. #include <string>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. int main ()
  7. {
  8. string str("Debi...utant bez przykladu nie zrozumie.");
  9. str.resize(remove_if(begin(str),end(str),[](char ch) { return ch=='e'; } )-begin(str));
  10. cout<<str<<endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
Dbi...utant bz przykladu ni zrozumi.