checkpasswdmain.c

来自「check password」· C语言 代码 · 共 41 行

C
41
字号
/*
*File: checkPasswdMain.c
*----------------------
*This part is the main  function of the project CP Program (CP here means check password)
*/
#include "checkPasswdMain.h"
/*
*name:zhangjiwang
*ProjectName:checkPasswd
*time:2004-9-8
*/
/*
*Function: main
*Usage: none
*----------------
*Arithmetic or functions:The main function to finish the test of this program(check Password)
*
*/
void main()
{
  int b=0;
  char userName[1024];
  char passWord[1024];
  char end;
  while(b==0)
  {
	printf("please input your username:\n"); 
	scanf("%s",userName);
	printf("now set your password please:\n");
	scanf("%s",passWord);
	b=checkPasswd(userName,passWord);
	if(b==1)
	{
		printf("Your password now is qualified!\n");
		return;
 	}
 }
}


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?