default=0timeout=5splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle Red Hat Enterprise Linux Server (2.6.18-194.el5) root (hd0,0) kernel /vmlinu... Read More
posted @ 2015-10-15 22:12 suonikeyinsu Views(190) Comments(0) Diggs(0) Edit
grub>rootnoverify (hd0,0)--->win7系统安装盘号grub > chainloader +1grub > makeactive --->激活主分区grub > bootrootnoverify(hd0,4)、chainloader +1” means If ... Read More
posted @ 2015-10-15 22:11 suonikeyinsu Views(1281) Comments(0) Diggs(0) Edit
grub是redhat默认的引导程序,在安装redhat时会提示是否安装bootloader,但自己手贱选择不安装,待系统重启时就是grub命令行界面,不能直接进系统。瞬时感觉麻烦大了,只能手动输入咯! 1.root (hd0,6)--->可通过table补全,root和()之前一定要有空格; ... Read More
posted @ 2015-10-15 21:49 suonikeyinsu Views(636) Comments(0) Diggs(0) Edit
1、install命令install: install [--stage2=STAGE2_FILE] [--force-lba] STAGE1 [d] DEVICE STAGE2 [ADDR] [p] [CONFIG_FILE] [REAL_CONFIG_FILE]STAGE1:指定stage1文件... Read More
posted @ 2015-10-15 21:48 suonikeyinsu Views(1392) Comments(0) Diggs(0) Edit
1 //5.公鸡5元一只,母鸡3元一只,小鸡1元3只,求100元刚好买100只鸡的可能 2 3 #include 4 5 int main(int argc, char** argv) 6 { 7 int i = 0; 8 int j = 0; 9 10 for (i ... Read More
posted @ 2015-08-18 23:01 suonikeyinsu Views(1589) Comments(0) Diggs(0) Edit
1.袋中有6红球 3黄球 3绿球,从中取6个球,求所有拿到球的颜色的可能 c(12,6) 1 #include 2 3 int main(int argc, char** argv) 4 { 5 int red = 6; 6 int yellow = 3; 7 int gr... Read More
posted @ 2015-08-18 22:15 suonikeyinsu Views(265) Comments(0) Diggs(0) Edit
1.求任意两个数的最大公约数 1 #include 2 3 //最简单的方法 4 void getMaxCom1(int a, int b); 5 6 //相对getMaxCom1优化 7 void getMaxCom2(int a, int b); 8 9 //辗转相除法10 void ge... Read More
posted @ 2015-08-18 22:00 suonikeyinsu Views(336) Comments(0) Diggs(0) Edit
1.求1000内的完数。(所有因子之和等于本身的数位完数,数本身不算因子) 1 #include 2 3 void perfectNum(int num); 4 5 int main(int argc, char** argv) 6 { 7 int num = 0; 8 9 p... Read More
posted @ 2015-08-18 21:29 suonikeyinsu Views(242) Comments(0) Diggs(0) Edit
1.求4,5,6,7所有四位数的排列组合。方法一: 1 #include 2 3 int main(int argc, char** argv) 4 { 5 int i = 0; 6 int j = 0; 7 int k = 0; 8 9 for (i = 4; ... Read More
posted @ 2015-08-18 21:12 suonikeyinsu Views(407) Comments(0) Diggs(0) Edit
示例1: 1 #include 2 #include 3 4 void* clean(void* arg) 5 { 6 printf("cleanup:%s\n", (char*)arg); 7 return (void*)0; 8 } 9 10 void* thrd_fn1(... Read More
posted @ 2015-06-14 19:37 suonikeyinsu Views(397) Comments(0) Diggs(0) Edit