题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。 1.程序分析:(a>b)?a:b这是条件运算符的基本例子。
上传时间: 2015-01-08
上传用户:lifangyuan12
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
c语言资料大全,包含有c语言函数库,c语言试题库,c语言指针,c编程技巧,编程实例,基础教程,算法与数据结构,游戏编程8大部分,不要更改文件名,否则打不开
标签: c语言
上传时间: 2015-03-28
上传用户:watch100
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
MATLAB-C混合编程,在M文件中调用 C语言函数,对学混合编程的初学者有一定的帮助
上传时间: 2015-06-13
上传用户:liansi
一个人力资源管理系统的实现,采用了C/S和B/S混合的软件体系结构,包括从问题分析到具体实现的全过程
标签: 人力资源管理系统
上传时间: 2013-12-16
上传用户:litianchu
本书以4个面向来表现C++的本质:procedural(程序性的)、generic(泛型的)、object-based(个别对象的)、object-oriented(面向对象的)。本书的组织围绕着一系列逐渐繁复的程序问题,以及用以解决这些问题的语言特性。循此方式,你不只学到C++的函数和结构,也会学习到它们的设计目的和基本原理。 你可以由本书发现以下关键主题: ● Generic (泛型)编程风格和Standard Template Library(STL) ● Object-based(个别对象)编程风格和class的设计 ● Object-oriented(面向对象)编程风格和classes阶层体系的设计 ● Function template 和class template 的设计和运用 ● Exception handling(异常处理)与执行期型别鉴定(Run-Time Type Identification)
标签: object-oriented object-based procedural generic
上传时间: 2013-12-30
上传用户:362279997
1.功能 用全选主元高斯消去法计算n阶方阵A所对应的行列式的值(C语言) 2.参数说明 double a[n][n] : 存方阵A的元素,返回时被破坏 int n : 方阵A的阶数 double sdet() : 函数返回行列式的值 3.文件说明 sdet.c为函数程序 sdet0.c为主函数程序
上传时间: 2014-01-14
上传用户:rocwangdp
1.功能 利用连分式法求非线性方程f(x)=0的一个实根(C语言) 2.参数说明 double *x : 指向迭代初值,返回时指向迭代终值 double eps : 控制精度要求 double (*f)() : 指向计算f(x)值的函数名(由用户自编) int pqrt() : 函数返回迭代次数 3.文件说明 pqrt.c为函数程序 pqrt0.c为主函数程序
上传时间: 2013-12-28
上传用户:weixiao99
1.功能 利用广义逆求解无约束条件下的优化问题(C语言) 2.参数说明 int m : 非线性方程组中方程个数 int n : 非线性方程组中未知数个数 double eps1 : 控制最小二乘解的精度要求 double eps2 : 用于奇异值分解中的控制精度要求 double x[n] : 存放非线性方程组解的初始近似值X(0),要求各分量不全为0 int ka : Ka=max{m,n}+1 void (*f)() : 指向计算非线性方程组中各方程左端函数值的函数名(用户自编) void (*s)() : 指向计算雅可比矩阵的函数名 int ngin() : 函数返回一个标志值 3.文件说明 ngin.c函数文件 ngin0.c主函数文件
上传时间: 2013-12-23
上传用户:大三三