2015年8月21日
摘要: 小提示,密码文件需要自己先创建一个txt文件自己输入6个字符密码,路径与代码的运行路径在一起。。。/*题目:文件加密 文件的传输会有明文和密文的区别,明文发送时不安全的,用一个程序实现发送文件的加密和解密操作。 加密算法,密钥设计由同学自己选择现有的加密解密算法或是自己设计的。... 阅读全文
posted @ 2015-08-21 18:13 cnxo 阅读(366) 评论(0) 推荐(0) 编辑
摘要: #include #include #include int one1=1,one2=1,one3=1,one4=1,one5=1,one6=1;void color1(){ system("color F4"); Sleep(500);}void color2(){ ... 阅读全文
posted @ 2015-08-21 18:00 cnxo 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Problem Description There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).Input Input consists of a... 阅读全文
posted @ 2015-08-21 17:53 cnxo 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit t... 阅读全文
posted @ 2015-08-21 17:00 cnxo 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Problem Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is gu... 阅读全文
posted @ 2015-08-21 14:38 cnxo 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 最近看C,看到strcmp函数,对它的实现原型不很清楚,于是到网上搜。网上算法一大堆,看了很多代码后自己做了一下总结 strcmp函数是C/C++中基本的函数,它对两个字符串进行比较,然后返回比较结果,函数形式如下: int strcmp(const char* str1, const c... 阅读全文
posted @ 2015-08-21 14:30 cnxo 阅读(789) 评论(0) 推荐(0) 编辑