摘要: (global-linum-mode t)(load-theme 'misterioso t);我的默认配色,暗色;共享剪切板(setq x-select-enable-clipboard t);加载Cscope(require 'xcscope);关闭启动信息(setq inhibit-startup-message t);去掉工具栏(tool-bar-mode -1);去掉菜单栏(C-mouse2:显示菜单栏)(menu-bar-mode -1);; 去掉滚动栏(scroll-bar-mode nil);; 显示时间,格式如下(display-time-mode 1) (s 阅读全文
posted @ 2013-01-25 15:52 fisher2012 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 直接贴过程了,本身没搞过java,因为需求,装x尝试了。1,去java官网上下载linux版本的java jdk包。我下的tar.gz。2,解压到/usr/local/java3,修改/etc/profile 添加末尾 32 export JAVA_HOME=/usr/local/java/jdk1.7.0_10 33 34 export JRE_HOME=/usr/local/java/jdk1.7.0_10/jre 35 36 export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH 37 38 export P... 阅读全文
posted @ 2013-01-10 17:53 fisher2012 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 想快速学习下各种语言,正好看到了一本《七周七语言》,随便翻了一下,感觉很满足好奇心的一本书,决定趁着时间还充裕,学习一下。ruby的提供很多方法,这里根据《programming ruby》中使用rvm安装ruby1.9.3登录到https://rvm.io/,可以看到安装rvm的方法,这里使用(需要git支持,sudo apt-get install git curl)curl -L get.rvm.io | bash -s stable将rvm添加到shell上,source ~/.rvm/scripts/rvm安装rubyrvm install ruby-1.9.3-p362然后就是安装 阅读全文
posted @ 2013-01-09 22:28 fisher2012 阅读(193) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#defineHashSize11structHashTableNode{intdata;structHashTableNode*pnext;}HashArray[HashSize];typedefstructHashTableNode*pnode;voidInitHashTable(){inti=0;for(i=0;i<HashSize;i++)HashArray[i].data=i;}pnodeHashTailNode(inti){pnodep=&HashArray[i];while 阅读全文
posted @ 2012-08-16 12:50 fisher2012 阅读(297) 评论(0) 推荐(0) 编辑
摘要: fxtbook第二节中哦那个有一段内容提到了,指针的兼容性。 我们知道指针式指向地址的,而指针所需要的字节数就是我们所存放的地址值,在32位机器上,我们的地址是32位,例如0x0A0B0C0D,相应的64位机器的指针所需要的字节数就是8个字节了。 For portable code it is better to avoidcasting pointers to integer types. 阅读全文
posted @ 2012-08-13 10:48 fisher2012 阅读(183) 评论(0) 推荐(0) 编辑
摘要: //大小端判断#include<iostream>boolendian_big_little_pointer();boolendian_big_little_union();intmain(){if(endian_big_little_pointer()&&endian_big_little_union())std::cout<<"bigendian"<<std::endl;elsestd::cout<<"littleendian"<<std::endl;}//利用位操作判断大小 阅读全文
posted @ 2012-08-13 10:25 fisher2012 阅读(146) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>typedef struct node{ int data; struct node* pnext;}node,*pnode;typedef struct stack{ pnode ptop; pnode pbottom;}stack,*pstack;void initstack(pstack ps);void push(pstack ps , int idata);void pop(pstack ps);void traverse(pstack ps);int main(){ pstack... 阅读全文
posted @ 2012-05-01 12:53 fisher2012 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>typedef struct list{ int data; struct list* pnext;}list,*pnode;pnode create_list();void traversal_list(pnode phead);int main(){ pnode phead = create_list(); traversal_list(phead); return 0;}pnode create_list(){ int i,n=1; puts("please input t... 阅读全文
posted @ 2012-05-01 12:52 fisher2012 阅读(143) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>typedef struct node{ int data; struct node *pnext;}node,*pnode;typedef struct queue{ pnode front; pnode rear;}queue,*pqueue;void initQueue(pqueue );void insertQueue(pqueue ,int);void deleteQueue(pqueue);void traverseQueue(pqueue);int main(){ pqueue... 阅读全文
posted @ 2012-04-30 22:01 fisher2012 阅读(113) 评论(0) 推荐(0) 编辑