C
@@@lv
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C_Student
#include <stdio.h> #include <stdlib.h> #include <string.h> // 定义数据 struct Student { int id; char name[16]; int scores[3]; }; int n; int size = n * sizeof(Student); Stude...原创 2018-12-13 17:09:54 · 210 阅读 · 0 评论 -
C_简单递归练习
#include <stdio.h> // printd函数:打印十进制数n void printd(int n) { if (n < 0) { putchar('-'); n = -n; } if (n / 10) printd(n / 10); putchar(n % 10 + '0'...原创 2018-12-13 17:28:40 · 205 阅读 · 0 评论 -
C_多维数组日期转换天
#include <stdio.h> #include <stdlib.h> static char daytab[2][3] = { {0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,30,31,31,30,31,30,31} }; // day_of_year函数:将某月某日的日期...原创 2018-12-13 17:31:17 · 267 阅读 · 0 评论 -
C_小白级加密解密
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> char jiami(char ch) { return ch ^ 123; } char jiemi(char ch) { return ch ^ 123; } void jia(char *path, char *pa...转载 2018-12-13 17:46:11 · 21847 阅读 · 0 评论 -
C_结构体统计关键字次数
#include <stdio.h> #include <ctype.h> #include <string.h> #define MAXWORD 100 #define NKEYS (sizeof keytab / sizeof(struct key)) struct key{ char *word; int count; }keytab...转载 2018-12-13 18:33:42 · 394 阅读 · 0 评论 -
C_俩文件打印不同行
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXLINE 100 // 比较:比较俩个文件,输出第一个不同的行 int main(int argc, char *argv[]) { FILE *fp1, *fp2; void filecomp(FIL...转载 2018-12-13 18:42:46 · 254 阅读 · 0 评论
分享