- 博客(5)
- 资源 (4)
- 问答 (2)
- 收藏
- 关注
原创 蛇形填数
#include <stdio.h>#include <stdlib.h>#include <string.h>void print(int n, int a[][n]){ int i,j; for(i = 0; i < n; ++i) { for(j = 0; j < n; ++j) { printf("%3d ",a[i][j]);
2016-12-20 21:13:00 164
原创 内存分配函数
1.malloc原型:extern void *malloc (size_t __size);2.calloc 原型:extern void *calloc (size_t __nmemb, size_t __size)3.realloc 原型:extern void *realloc (void *__ptr, size_t __size)功能类似:分配size大小的连续的内存空间,并返回vo
2016-12-17 23:51:51 312
原创 不定参数函数
参数的存储位置#include <stdio.h>int func(int,int);int main(){ int a = 1,b = 2; int sum = func(a,b); printf("sum = %d\n",sum); return 0;}int func(int a,int b){ printf("$a = %p\n&b =
2016-12-15 23:36:24 720
原创 诡异的指针
“[]”运算 与 指针//1.Ex1[Ex2] = *(Ex1 + Ex2)int a[SIZE] = {1,2,3,[3] = 4};int *p = a;printf("%d %d\n",p[3],*(p + 3));//p[3],*(p + 3) -> 等价//2.Ex1[Ex2] = Ex2[Ex1]int a[SIZE] = {1,2,3,[3] = 4};int *p = a;p
2016-12-09 17:16:52 174
原创 double类型解析
double类型存储规定:把浮点数化成小数点前只有1位的小数与2的指数的乘积的形式,存储小数点后的52位,2的指数及数的符号。sizeof(double) // 8个字节#include <stdio.h>//利用共用体的特点,所有类型共用一段最大的内存空间typedef union { double d; char byte[8];}BIT;int main(){
2016-12-08 22:58:36 10347
达梦数据库驱动和方言依赖.zip
2019-06-28
MySql数据驱动
2017-09-21
jar反编译工具
2017-09-21
SSH+maven jar包冲突问题
2018-06-26
javascript throw Error
2016-09-09
TA创建的收藏夹 TA关注的收藏夹
TA关注的人