Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #include <iostream.h>
  2. namespace parola {
  3. class reguli{
  4. std:: string pass;
  5. int a;
  6. int b;
  7. bool length_ok(int a)
  8. {
  9. if(a<pass.length())
  10. return 1;
  11. }
  12. bool length_ok(int a, int b)
  13. {
  14. if(a<pass.length()&&pass.length()<=b);
  15. return 1;
  16.  
  17. }
  18. bool repetition(int c)
  19. { int sw=0;
  20. for(int j=0;j<pass.length()&&c!=nr;j++)
  21. { nr=1;
  22. for(int i=1; i<pass.length();i++)
  23. {
  24. if(v[j]==v[i])
  25. {
  26. nr++;
  27. }
  28. }
  29. }
  30.  
  31. }
  32. };
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement