摘要: static的作用 :1.保存上次执行的结果 2.static int m; 这里默认m的初始值为0,即默认值是0#include "stdio.h"int fun(int ,int);// 用户自定义函数在main函数之后使用,//就必须在main函数之前进行声明main(){int k=4,m=... 阅读全文
posted @ 2015-09-01 16:22 Mr__sun 阅读(239) 评论(0) 推荐(0) 编辑
摘要: s=(float *) calloc (1,sizeof(float));#include "stdio.h"#include "stdlib.h"void fun(float *p1,float *p2,float *s){s=(float *) calloc (1,sizeof(float));... 阅读全文
posted @ 2015-09-01 16:20 Mr__sun 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 最近在试装centos,不小心把密码丢了,进不去,查了一下资料,找到了方法,试验成功。存在这里,备用。1. 在出现grub画面时,用上下键选中你平时启动linux的那一项,然后按e键2. 再次用上下键选中你平时启动linux的那一项(类似于kernel /boot/vmlinuz-2.4.18-14... 阅读全文
posted @ 2015-09-01 16:19 Mr__sun 阅读(207) 评论(0) 推荐(0) 编辑