fork(1) download
  1. #include <iostream>
  2. #include <cctype>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. std::string str(" Where is everybody?");
  8. int i = 0;
  9. while (isblank(str[i])) i++;
  10. while (!isblank(str[i])) i++;
  11. while (isblank(str[i])) i++;
  12. str = str.substr(i);
  13. cout << str << endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 2984KB
stdin
Standard input is empty
stdout
is everybody?