上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: #includevoid Check(int* p, int m, int n) //数组计数每个数对应的因子个数{ int i,... 阅读全文
posted @ 2021-01-06 12:55 nepu_bin 阅读(3199) 评论(0) 推荐(0)
摘要: 判断方法:当 1 用整型int存储之后赋值给char,再经判断可知是数据的存储方式 (巧妙运用了联合的存储特性:联合体的成员从低... 阅读全文
posted @ 2021-01-06 12:08 nepu_bin 阅读(130) 评论(0) 推荐(0)
摘要: #include "stdio.h"void IsPrime(int* p,int n){ for (int i = 0; i < ... 阅读全文
posted @ 2021-01-05 20:25 nepu_bin 阅读(100) 评论(0) 推荐(0)
摘要: 2^0=1(B) 二进制,下同 2^1=2=10; 2^2=4=100; ··· ··· n=0,s=10-1=1; n=1,s=1... 阅读全文
posted @ 2021-01-05 19:31 nepu_bin 阅读(336) 评论(0) 推荐(0)
摘要: #include "stdio.h"#include "stdlib.h"void Choose(int* p, int n) //... 阅读全文
posted @ 2021-01-05 17:15 nepu_bin 阅读(60) 评论(0) 推荐(0)
摘要: #include "stdio.h"#include "string.h"void GetMemory1(char* p){ p =... 阅读全文
posted @ 2021-01-04 19:28 nepu_bin 阅读(65) 评论(0) 推荐(0)
摘要: #include void Swap(int* a, int* b) //交换数值{ int t = *a; *a = *b; *... 阅读全文
posted @ 2021-01-04 17:20 nepu_bin 阅读(214) 评论(0) 推荐(0)
摘要: 不使用库函数自己编写strcpy进行字符串复制; #include "stdio.h"#define OK 1#define ERR... 阅读全文
posted @ 2021-01-03 21:11 nepu_bin 阅读(220) 评论(0) 推荐(0)
摘要: 输入字符串遇到换行或空格结束输出 char a[100],c;int i;i = 0;while(scanf("%c",&c) &&... 阅读全文
posted @ 2021-01-03 17:27 nepu_bin 阅读(294) 评论(0) 推荐(0)
摘要: 核心思想:(类似于厄拉多塞筛选) 建立一个长度128的数组用来计数;(数组下标恰好包含了ascll码表的所有值) 此时 数组下标可用... 阅读全文
posted @ 2021-01-03 16:35 nepu_bin 阅读(82) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 下一页