77问答网
所有问题
当前搜索:
c语言添加密码
怎么用
c语言
写一个创建用户名和
密码
并且能修改密码的程序?
答:
include //我自己做的,你拿去用吧!\x0d\x0a#include \x0d\x0astruct e\x0d\x0a{\x0d\x0a char a[10];\x0d\x0a char b[10];\x0d\x0a}z;\x0d\x0aint main()\x0d\x0a{ int t=0;\x0d\x0a char s[10],d[10];\x0d\x0a FILE *p;\x0d...
C语言
密码
输入急用!!!
答:
/***本题编码***如有不清楚可以问我哦*/ include<stdio.h> include<string.h> void main(){ char str[]="abc119";char _str[100];for(int i=0;i<3;i++){ printf("Enter
password
:\n");scanf("%s",_str);if(strcmp(str,_str)!=0)printf("Sorry\n");else { printf("OK!W...
怎么给
C语言
程序加个弹窗提示。然后
加
个
密码
答:
我写了个 或许对你有用 例:include <windows.h> int main(int argc, char* argv[]){ ::MessageBox(NULL,"登录前请输入
密码
","温馨提示",64);return 0;//下面写你自己的程序 }
c语言
用调用函数写登录
密码
答:
可以定义两个字符数组;一个存放正确
密码
;另一个数组内的内容由用户输入;调用strcmp函数,若返回值为0则说明两者完全相等;列子:char a[10]="4488" //保存正确密码 char b[10];gets(b) //用户输入 if(strcmp(a,b)==0)printf(" 匹配成功 ");else printf("匹配失败");更多追问追答...
先由用户设置
密码
,再验证输入密码是否正确。用
c语言
?
答:
include "stdio.h"include "conio.h"main (){ char *passw ;char pass[]="admin" ; /*
密码
百为admin*/ printf("Pleas input your
password
: ");gets(passw);if(strncmp(pass,passw)) /*当passw与度pass不同知时*/ printf("/nLogin failed!!");else printf("/nLogin success!");g...
c语言
修改
密码
初始密码为123456,密码包含数字和字母,数字必须大于2位...
答:
include <stdio.h>#include <string.h>#include <ctype.h>int main(){ char psw[21]="123456",t1[21],t2[21]; int i,n=0; printf("请输入初始
密码
:\n"); do { gets(t1); n++; err=strcmp(t1,psw); if(err)printf("初始密码错误!请重新输入!\n"); } w...
求51单片机
C语言
编的
密码
锁程序
答:
include <reg52.h> define uint unsigned int define uchar unsigned char define BIN(a,b,
c
,d,e,f,g,h) ((a<<7)+(b<<6)+(c<<5)+(d<<4)+(e<<3)+(f<<2)+(g<<1)+(h<<0))//下面的code表示数组存放在ROM中,因为这个数组的值不需要改写 uchar code KeyCode[16]={15,14...
如何用
C语言
编程一个开机
密码
认证程序?
答:
密码
保存在文件中,从文件中读取密码,但是没做容错和异常处理,仅供参考 include <stdio.h> include <string.h> define PSDLEN 6 void inputPsd(char *str) /*处理输入*/ { int i;for(i = 0; i < PSDLEN; i++){ while(1){ str[i] = getch();if(str[i] == '\b') /*...
凯撒
密码
,
C语言
,求救!
答:
include <stdio.h> include <string.h> int main(){ int i = 0;int len = 0;char ch;char buf[256] = {0};char nor[26] = {'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',...
求
C语言
或C++的电子
密码
锁程序
答:
include <stdio.h> include <conio.h> /*conio库,调用无回显getch()就是输入后不显示*/ include <iostream> using namespace std;int main (){ int j=0;int i;char code[10];char s;for (i=3;i!=0;--i){ j=0;printf("你还有%d次机会,请输入
密码
:\n",i);cout<<"888888...
<涓婁竴椤
1
2
3
4
5
6
7
8
9
10
涓嬩竴椤
灏鹃〉
其他人还搜