cpp program:

'''#include ''' '''#include ''' '''#include ''' '''using namespace std; ''' '''static const char alphnum[]="0123456789" "!@#$%^&*" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz"; ''' '''int strLen=sizeof(alphnum)-1;''' '''char GenRand()''' '''{ return alphnum[rand()%strLen]; } '''

'''int main() ''' '''{ int n,c=0,s=0;''' '''srand(time(0));''' '''cout<<"Enter the length of the password required:";''' '''cin>>n;''' '''cout<2 && (s==0 || c==0))''' '''{goto N; }''' cout<<D; '''return 0; ''' '''}'''

Built With

Share this project:

Updates