第1题
编写密码设置函数SetPassword(),实现密码设置,让用户输入一个8位密码,如果长度不符合要求则重新输入,如果长度合法,要求再次输入这个8位密码来进行验证,如果第二次输入的密码与第一次输入的密码不一致,则重新进行密码设置。编写主函数调用密码设置函数,设置密码并将用户设置的密码显示给用户。 函数原型: void SetPassword(char *ps); 功能:密码设置 参数:char *ps ,保存用户设置的密码串信息 第一次输入提示信息:”Please input password:” 密码长度不合法时的输出提示信息:”The length of the password must be 8, input again.\n” 再次输入提示信息:”Please input password again:” 两次输入不一致的提示信息:”Twice input is inconsistent, set again.\n” 程序运行示例: Please input password:zyh1234567↙ The length of the password must be 8, input again. Please input password:zyh123↙ The length of the password must be 8, input again. Please input password:zyh12345↙ Please input password again:abcd123↙ Twice input is inconsistent, set again. Please input password:zyh12345↙ Please input password again:zyh12345↙ Please remember your password:zyh12345
第4题
A. 两次输入的发票代码及号码不一致造成
B. 查看“系统设置/类别编码”中是否有该发票代码
C. 输入对应蓝字发票代码及号码前未输入红字发票通知单号
D. 普通发票不可以开负数发票
第5题
a)任意字符比对的成功与失败概率分别为1/s和(s-1)/s,其中s=|∑|为字符表的规模;
b)在P与T的每一对齐位置,需连续执行恰好k次字符比对操作的概率为(s-1)/sk;
c)在P与T的每一对齐位置,需连续执行字符比对操作的期望次数不超过s/(s-1)≤2=o(1)。
第6题
A.可重复读 B.读脏数据 C.丢失修改 D.幻影现象 A.Read Uncommitted B.Read Committed C.Repeatable Read D.Serializable
第7题
要求从键盘上输入一个不多于5位数的正整数,依次输出每位数字(从低位到高位依次输出)。(每两个数字之间用英文逗号隔开)
如:输入: 3689
则应输出: 9,8,6,3
注:千万不要有任何多余的输入输出,包括/n之类的一定不要有。
如printf(" %d,%d" ,a,b);即可。
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!