题目内容

阅读以下程序,按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。下面程序比较用户键盘输入的口令userInput与内设的口令password是否相同。若相同,则输出"Correct password!Welcome to the system..."若passwordpassword"#include #include int main(void){char password[7]="secret";char userInput[81];printf("Input Password");scanf("%s",userInput);if(________)printf("Correct password!Welcome to the system...\n");else if(________)printf("Invalid password! user inputpassword\n");return 0;}

查看答案
更多问题

调用strcmp函数比较字符串大小时,通常较长的字符串会较大。

A. 对
B. 错

如果strcmp(s1,s2)返回的结果为0,表示字符串s1和s2不相同。

A. 对
B. 错

当用户要求输入的字符串中含有空格时,应使用的输入函数是 gets()。

A. 对
B. 错

国务院药品监督管理部门应当自受理临床试验申请之日起( )工作日内决定是否同意并通知临床试验申办者,逾期未通知的,视为同意。

A. 30
B. 40
C. 50
D. 60

答案查题题库