fork(1) download
  1. #include <iostream>
  2. #include <string>
  3. #include <cctype>
  4. using namespace std;
  5.  
  6. int main() {
  7. string passCode;
  8.  
  9. passCode = "1 ";
  10.  
  11. if (isspace(passCode.at(0))){
  12. passCode.replace(0, 1, "_");
  13. }
  14. if (isspace(passCode.at(1))){
  15. passCode.replace(1, 1, "_");
  16. }
  17.  
  18. cout << passCode << endl;
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
1_