Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include<string.h>  
  2. #include<iostream>
  3.  
  4. int main()
  5. {
  6.     std::string password = "haslo";
  7.    
  8.     std::string hiddenPassword = "";
  9.     for (auto i : password) {
  10.         hiddenPassword += "*";
  11.     }
  12.    
  13.     std::cout << hiddenPassword << std::endl;
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement