اخواني لقد قمت بتطبيق على كلمة السر ولكن لم ينجح الامر
لا أدري لماذا ؟!؟ :'( :'( :'(
#include < stdio.h >
#include < conio.h >
#include < stdlib.h >
#include < string.h >
int getcode(void);
main()
{
char pass[6],pass1[6];
int i, c, k;
i=0;
c=0;
printf("nEnter the pass word: ");
c=getcode();
while( (c != 13) && (i < 6) )
{
if( c==8 )
{
i-- ;
system("cls");
printf("nEnter the pass word: ");
for( k=0 ; k
printf("*");
}
else if( ((c>=65) && (c<=90)) || (( c>=97 ) && ( c<=122 )) || (( c>=48 ) && ( c<=57 )))
{
pass = c ;
i++ ;
printf("*");
}
c=getcode();
}
if( i<6 ) pass[i+1]='