上一页 1 ··· 4 5 6 7 8
摘要: 下面是以前学习Linux时写的,后来仔细研究rc.sysinit后发现,只需要修改下列地方就可以了,不必这么麻烦的: rc.sysinit中有这样的一段代码: # Load other user-defined modules for file in /etc/sysconfig/m... 阅读全文
posted @ 2015-06-02 16:07 hust_liye 阅读(1865) 评论(0) 推荐(0)
摘要: 什么是内核树?刚开始我也没弄明白,通过这几天的学习,有所感悟,就说说我的理解吧!从形式上看,内核树与内核源码的目录结构形式是相同的,都是由各个层次的文件目录结构组成,但是其中的具体内容肯定是不同的。从功能上看,内核树中含有编写或编译Kernel程序或驱动时所需要的一些内核函数库以及定义好的一些... 阅读全文
posted @ 2015-05-26 09:44 hust_liye 阅读(257) 评论(0) 推荐(0)
摘要: Linux 2.6内核编译比以前方便多了,本文描述了在FC8下升级linux内核为2.6.25的详细步骤. 1. 首先从如下网址得到linux-2.6.25. http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.25.tar.bz2 2... 阅读全文
posted @ 2015-05-26 09:36 hust_liye 阅读(185) 评论(0) 推荐(0)
摘要: Ubuntu 删除多余内核 转载▼ 首先查询当前我们使用的是内核是那个版本别删错了。 uname -a 第二: 查询系统中装了多少内核 dpkg --get-selections|grep linux 第三: 多余的内核可以通过命令删除 需要删除header和im... 阅读全文
posted @ 2015-05-26 09:26 hust_liye 阅读(660) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-04-30 17:11 hust_liye 阅读(108) 评论(0) 推荐(0)
摘要: #include#include#include#include#includeusing namespace std;void insert_sort(int a[], int n){ int i,j,temp; for ( i=1; i=0&&temp0; h=h/2) {... 阅读全文
posted @ 2015-04-30 00:11 hust_liye 阅读(134) 评论(0) 推荐(0)
摘要: 1.直接插入排序 void insert_sort(int a[], int n){ int i,j,temp; for ( i=1; i=0&&temp0; h=h/2) { for (i=h; i=0 && temp=1;j--) { ... 阅读全文
posted @ 2015-04-29 20:00 hust_liye 阅读(251) 评论(0) 推荐(0)
摘要: int main(int argc, char** argv){int strLen = 5;char ch;char* str = (char*)malloc(sizeof(char*) * strLen);int count = 0;printf("Please input a string... 阅读全文
posted @ 2015-04-19 22:06 hust_liye 阅读(802) 评论(0) 推荐(0)
摘要: #include #include #include #include using namespace std; char * get2String(long num) { int i = 0; char * buffer = NULL; char * temp = NULL; pr... 阅读全文
posted @ 2015-04-14 01:16 hust_liye 阅读(1499) 评论(0) 推荐(0)
摘要: 优化算法入门系列文章目录(更新中): 1. 模拟退火算法 2. 遗传算法 一. 爬山算法 ( Hill Climbing ) 介绍模拟退火前,先介绍爬山算法。爬山算法是一种简单的贪心搜索算法,该算法每次从当前解的临近解空间中选择一个最优解作为当前解,直到... 阅读全文
posted @ 2015-04-01 22:21 hust_liye 阅读(142) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8