摘要: #include "stdio.h" #define KEY 5; int main() { char password[50] = "123456"; encrypt(password); printf("加密后的字符串为:",password); return 1; } /** *加密函数 *返 阅读全文
posted @ 2017-02-28 21:09 N神3 阅读(362) 评论(0) 推荐(0) 编辑
摘要: C字符串用字符数组来存储 #include "stdio.h" #include "stdlib.h" int main(){ //定义字符串的几种方式 //字符串和字符数组的区别:最后一位是否是空字符 char names1[] = {'j','a','c','k','\0'}; //第一种方式 阅读全文
posted @ 2017-02-28 20:45 N神3 阅读(211) 评论(0) 推荐(0) 编辑
摘要: ①、普通年能被4整除且不能被100整除的为闰年.②、世纪年能被400整除的是闰年③、对于数值很大的年份,这年如果能整除3200,并且能整除172800则是闰年.如172800年是闰年,86400年不是闰年 程序实践: 题目:输入某年某月某日,判断这一天是这一年的第几天? 1.程序分析:以3月5日为例 阅读全文
posted @ 2017-02-28 10:32 N神3 阅读(7195) 评论(0) 推荐(0) 编辑