Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- namespace parola {
- class reguli{
- std:: string pass;
- int a;
- int b;
- bool length_ok(int a)
- {
- if(a<pass.length())
- return 1;
- }
- bool length_ok(int a, int b)
- {
- if(a<pass.length()&&pass.length()<=b);
- return 1;
- }
- bool repetition(int c)
- { int sw=0;
- for(int j=0;j<pass.length()&&c!=nr;j++)
- { nr=1;
- for(int i=1; i<pass.length();i++)
- {
- if(v[j]==v[i])
- {
- nr++;
- }
- }
- }
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement