皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
【程序功能】 本程序实现如下功能:对字符串进行解密。 【操作要求】 1. 新建项目: 在 Visual Studio.NET 中,新建一个 Visual C# 控制台应用 程序项目,名称设置为 Test1_12, 位置设置为考生文件夹。 2. 在方法中定义变量: l 整型变量 i; l string 类型变量 s_text 、 s_key 和 s_result, 设置 s_result 的初始值为 null; l char 类型变量 ch 。 3. 使用条件语句和循环语句对字符串进行解密: l 从控制台输出一行文本 ” 请输入加密字符串 : ”; l 由控制台读入一行文本,并赋值给字符串 s_text; l 从控制台输出一行文本 ” 请输入密钥字符串: ”; l 由控制台读入一行文本,并赋值给字符串 s_key; l 若字符串 s_text 和 s_key 长度不相等,输出 ” 密钥字符串与加密字符串长度必须相等 ” ,结束程序 ; l 以 i 为循环变量,使用 for 循环语句由依次将 s_text 的各个字符赋值给 ch, 与 s_key 中对应的字符串进行异或运算,并将结果添加到 s_result 的末尾 ; l 输出 ” 解密后的字符串为: ”; l 输出 s_result; l 输出文本 ” 按回车键结束 ” ,读取回车键后结束程序。 4. 程序设计完成之后进行编译,生成项目的 EXE 可执行文件。 【执行结果】 运行程序打开命令行窗口,程序提示输入原字符串和密钥字符串,并输出对字符串进行加密的结果
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】Part III Directions: In this section, you’ll hear some passages. At the end of each passage, you'll hear some questions. Both the passage and the questions will be spoken only once. After each questio...
【单选题】下列不属于欧洲古典乐派的主要代表人物的是()。
A.
海顿
B.
贝多芬
C.
肖邦
D.
莫扎特
【简答题】Part IV Directions: In this section, you’ll hear some passages. At the end of each passage, you'll hear some questions. Both the passage and the questions will be spoken only once. After each question...
【单选题】第15-17题图.docx The table in the above figure shows the levels of output resulting from different levels of inputs. Returns to scale are greatest at which level of output? ______
A.
100-200 units
B.
400-600 units
C.
200-400 units
D.
There is insufficient information to answer the question
【单选题】设异步串行通信时,每个字符对应1个起始位,7个信息位,1个奇/偶校验位和2个停止位,每秒传送这样字符240个,其波特率为()b/s。
A.
2400
B.
2640
C.
1200
D.
1920
【单选题】张先生70岁。慢性支气管炎,近几天咳嗽加剧,痰液粘稠,不易咳出,雾化吸入治疗首
A.
物是
B.
舒喘灵
C.
氨茶碱
D.
沙丁胺醇
E.
布地奈德
F.
盐酸氨溴索
【单选题】Section B Directions: In this section, you will hear several short passages. At the end of each passage, you will hear some questions. Both the passage and the questions will be spoken only once. Afte...
A.
They get close to nature.
B.
They are usually healthier than city people.
C.
They get better and cheaper farm products.
D.
They are more polite than city people.
【简答题】Part III Directions: In this section, you will hear some news reports. At the end of each news report, you will hear some questions. Both the news and the question will be spoken only once. After each...
【单选题】设异步串行通信时,每个字符对应1个起始位,7个信息位,1个奇/偶校验位和2个停止位,每秒传送这样字符240个,其波特率为( )。
A.
2640bps
B.
2400bps
C.
1920bps
D.
1200bps
【单选题】Section B - Question 12 to 15 are based on the conversation you have just heard.
A.
Banks charge different amounts for late payment.
B.
Banks charge the same amounts for annual membership.
C.
21% of people holding credit cards pay interest on their purchases.
D.
17% of people with credit cards knew the interest rate charged on their purchases.
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题