题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。 1.程序分析:(a>b)?a:b这是条件运算符的基本例子。
上传时间: 2015-01-08
上传用户:lifangyuan12
本程序是用纯C语言编的一个基于命令行的四则运算计算器。主要用于计算四则运算表达式的值,同时可以实现四种进制任意两种之间的转换。 主要功能:1.四则运算:能够解释并执行四则运算表达式。四则运算就是包含+、—、*、/、.(小数点)和数字的运算表达式,例如:3+2.9*(5-6/3) -4+(+8*6)等; 2.错误警告:能够对不符合语法的表达式给出相应的错误警告,本程序共给出了8大类警告 3.进制转换:能够做二进制、八进制、十进制、十六进制中任意两种进制之间的互相转换 4.帮助系统:提供完善的帮助系统 5.出错保护:有良好的出错保护系统,命令行输入错误,程序仍能正常运行。
上传时间: 2013-12-21
上传用户:aysyzxzm
RSA算法 :首先, 找出三个数, p, q, r, 其中 p, q 是两个相异的质数, r 是与 (p-1)(q-1) 互质的数...... p, q, r 这三个数便是 person_key,接著, 找出 m, 使得 r^m == 1 mod (p-1)(q-1)..... 这个 m 一定存在, 因为 r 与 (p-1)(q-1) 互质, 用辗转相除法就可以得到了..... 再来, 计算 n = pq....... m, n 这两个数便是 public_key ,编码过程是, 若资料为 a, 将其看成是一个大整数, 假设 a < n.... 如果 a >= n 的话, 就将 a 表成 s 进位 (s
标签: person_key RSA 算法
上传时间: 2013-12-14
上传用户:zhuyibin
打开一个bmp影像,然后对图形进行3*3,5*5,7*7,9*9四种模板的滤波处理。
标签: bmp
上传时间: 2013-11-29
上传用户:啊飒飒大师的
为Delphi2005做了改动 DSPack 2.3.3 (Sep 2004). DSPack is a set of Components and class to write Multimedia Applications using MS Direct Show and DirectX technologies. DSPack is designed to work with DirectX 9 on Win9X, ME, 2000, and Windows XP operating systems. Now VMR (Video Mixing Renderer) is available on all Windows Operating Systems. DSPack 2 is designed to work with Delphi 5,6,7 and CPP Builder 6.
标签: DSPack Components Multimedia Delphi
上传时间: 2014-01-22
上传用户:hzy5825468
802.11a 的仿真模型,适合Matlab6.5和7.0的版本
上传时间: 2013-12-19
上传用户:lgnf
您想您的应用程序具有MacOS,WinXP或者更多专业的UI设计的界面风格和外观吗?现在您可以实现这一切,并且不用写一行代码! > >SUIPack是一款为Delphi和C++Builder开发的所见即所得的界面增强VCL组件,它可以帮助您创建具有专业的界面外观 设计的应用程序,大大节省您的时间和开发成本。 > >这些界面风格和外观大部分出自我们的UI设计师的精心设计。 > >请注意,我们提供的不仅仅是界面实现控件,更包含专业的界面方案设计! > >SUIPack兼容:Delphi 2005, Delphi 5/6/7, C++Builder 5/6. >使用SUIPack的程序,可以运行在:Win95及其以上所有版本Windows平台. qq:313433524
上传时间: 2015-04-20
上传用户:wkchong
The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition
标签: government streamline important alphabet
上传时间: 2015-06-09
上传用户:weixiao99
电力系统在台稳定计算式电力系统不正常运行方式的一种计算。它的任务是已知电力系统某一正常运行状态和受到某种扰动,计算电力系统所有发电机能否同步运行 1运行说明: 请输入初始功率S0,形如a+bi 请输入无限大系统母线电压V0 请输入系统等值电抗矩阵B 矩阵B有以下元素组成的行矩阵 1正常运行时的系统直轴等值电抗Xd 2故障运行时的系统直轴等值电抗X d 3故障切除后的系统直轴等值电抗 请输入惯性时间常数Tj 请输入时段数N 请输入哪个时段发生故障Ni 请输入每时段间隔的时间dt
上传时间: 2015-06-13
上传用户:it男一枚
STC-Download/STC-ISP下载工具(STC89C51单片机在线下载器) 必须组件: SPComm(必须), VCLSkin(可以去掉) ------------------------------------------ 23:13 2005年7月4日 ------------------- 1.增加了重复下载功能,便于多个芯片下载 2.改进连机搜索算法 13:23 2005年7月4日 ------------------- 1.增加了Hex文件功能,可以直接载入Hex文件 2.修改了Bin文件载入功能,实现Bin文件直接载入,Hex解码到内存再载入 1:12 2005年7月4日 ------------------- 1.优化下载速度,将波特率由原来的1200提高到57600 2.增强芯片识别率,只要以16H结尾,都是芯片合法回应值 3.增加芯片版本识别,可以烧写固件版本2.9和3.0和芯片 4.关闭调试串输出,状态栏只显示操作信息和时间 -------------------------------- 作者: 吴江涛 Http://www.ktao.net E-Mail: ik3000cn@126.com
标签: STC-Download STC-ISP VCLSkin SPComm
上传时间: 2015-06-14
上传用户:thuyenvinh