
Untitled
By: a guest on
Aug 6th, 2012 | syntax:
None | size: 0.72 KB | hits: 8 | expires: Never
#include <iostream>
#include <stdlib.h>
using std::cin;
using std::cout;
int main ()
{
char alfa[] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
char Password[33]={0},miaPass[33]= {0};
int i,j=0;
system("color 70");
cout<<"Inserisci la password:";
cin>>Password;
while(miaPass!=Password)
{
for (i=0;i<26;i++)
{
if (alfa[i] == Password[j])
{
miaPass[j] = alfa[i];
}
}
j++;
break;
}
cout<<"La password e':"<<miaPass;
getchar();getchar();getchar();getchar();
getchar();getchar();getchar();getchar();
}