胖十斤换网名的阿琛
胖十斤换网名的阿琛
全部文章
初级划
C语言入门(1)
LeetCode(1)
Linux(1)
未归档(55)
牛客练题(2)
知识补丁(4)
题解(1)
归档
标签
去牛客网
登录
/
注册
胖十斤换网名的阿琛的博客
全部文章
/ 初级划
(共14篇)
[C]顺序表全功能实现
如遇错误,敬请指正! 编译环境 Vs2008 ** //SeqList.h //顺序表声明部分 ** #pragma once #include <stdio.h> #include <assert.h> #include <stdlib.h> #de...
2018-11-29
0
531
New Code day17
3.模拟实现strcpy define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <assert.h> void my_strcpy(char *dst,const char *src) { asser...
2018-11-07
0
469
New Code Day15
1.一个数组中只有两个数字是出现一次, 其他所有数字都出现了两次。 找出这两个数字,编程实现。 #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <assert.h> void find_num(...
2018-11-03
0
539
New Code day14
1.实现一个函数,可以左旋字符串中的k个字符。 ABCD左旋一个字符得到BCDA ABCD左旋两个字符得到CDAB #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <string.h> #incl...
2018-11-01
0
409
New Code day12
1.编写函数:这个函数的返回值value的二进制位模式从左到右翻转后的值。 #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <math.h> unsigned int reverse_bit(u...
2018-10-19
0
521
New Code day6
1.写一个函数返回参数二进制中 1 的个数 比如: 15 0000 1111 4 个 1 程序原型: int count_one_bits(unsigned int value) { // 返回 1的位数 } #define _CRT_SECURE_NO_WARNINGS 1 #i...
2018-10-16
0
524
New Code day9 -扫雷
扫雷游戏的实现三部分 ~尝鲜版 版本优点 1: 可以大片展开 2: 第一次选择位置一定不被炸死,给运气差玩家留点面子 3:每次清屏,干净整洁大气 扫雷游戏头文件game.h //game.h #ifndef __GAME_H__ #define __GAME_H__ #defin...
2018-10-14
0
438
New Code day10-三子棋
三子棋的实现 //test.c #include "game.h" void menu() { printf(" \n"); printf(" 三子棋小游戏 \n"); printf(...
2018-10-11
0
377
New Code day16
1. 递归和非递归分别实现求第n个斐波那契数。 #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> ~递归形式 int fib(int n) { if(n<3) return 1; return fib(n-1)+...
2018-10-09
0
449
New Code day7
1. 实现一个函数,打印乘法口诀表,口诀表的行数和列数自己指定, 输入9,输出9*9口诀表,输出12,输出12*12的乘法口诀表。 #define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <string....
2018-09-29
0
439
首页
上一页
1
2
下一页
末页