摘要: 1.安装(fedora) rpm包安装:(http://awesome.naquadah.org/wiki/Awesome-3-fedora)su -c 'wget -nd -P /etc/yum.repos.d http://repos.fedorapeople.org/repos/thm/awesome/fedora-awesome.repo'su -c 'yum install awesome'2.在gnome-session中用awesome的命令(我的GNOME是3.2版本)(http://awesome.naquadah.org/wiki/Quick 阅读全文
posted @ 2012-11-11 12:05 propheteia 阅读(2277) 评论(0) 推荐(0) 编辑
摘要: :g/useless/d %把包含某个单词的所有行都删除:%s/four/4/g %替换命令可以在全文中用一个单词替换另一个单词(http://www.douban.com/note/88343618/) 阅读全文
posted @ 2012-10-23 00:21 propheteia 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 线上资料: 1)http://libai.math.ncu.edu.tw/bcc16/7/latex/ 数学计算类 2) http://latex.yo2.cn/articles/latex-thesis.html 学位论文 3)http://texblog.org/2012/04/25/writing-a-cv-in-latex/ http://www.howtotex.com/templates/ 简历模板 4)http://tex.loria.fr/ Latex Navigation 5) http://www.ctex.org/OnlineDocuments ctex... 阅读全文
posted @ 2012-10-23 00:14 propheteia 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 1.Latex安装:简单的方法:yum install latex*2.CJK的安装:主要参考了下面两篇博文:【1】 http://blog.csdn.net/mylxiaoyi/article/details/522964【2】http://hi.baidu.com/geometry_/item/fcb381c2abe5193cee4665a2感谢博主的奉献!1.到http://cjk.ffii.org/官方网站下载最新的CJK,包括DOC文档。 进入/usr/local/share目录,执行下面的命令来创建我们要用到的目录: mkdir -p texmf/tex/latex/CJK mkd 阅读全文
posted @ 2012-10-16 22:14 propheteia 阅读(13277) 评论(0) 推荐(0) 编辑
摘要: 在目录 /etc/ 下面,有个名为vimrc 的文件,这是系统中公共的vim配置文件,对所有用户都有效。而在每个用户的主目录下,都可以自己建立私有的配置文件,命名为:“. vimrc ”。例如,/root目录下,通常已经存在一个. vimrc 文件。1.ctags -R不能递归到子文件夹 在~/目录下建文件.vimrc 在其中加入:set tags=tags;/2.Super tab自动补全http://www.vim.org/scripts/script.php?script_id=1643downloadvim supertab.vmb:so %3.Taglisthttp://www.vi 阅读全文
posted @ 2012-09-10 19:55 propheteia 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<time.h>using namespace std;class animal{ public: friend class fish; //class 此处不能少,否则无法识别fish是类。 animal(int i):a(i) {} private: int a; int add() { a+=5; return a; }};class fish //fish... 阅读全文
posted @ 2012-08-11 15:22 propheteia 阅读(163) 评论(0) 推荐(0) 编辑
摘要: grade.h#ifndef GRADE_H#define GRADE_H#include<string>#include<vector>using namespace std;class grade{ public: struct student { string name; int score; }; void menu(); void init(); void inputScoreAndName(); void display(); private: vector<st... 阅读全文
posted @ 2012-08-10 19:22 propheteia 阅读(688) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/autocrat/archive/2010/05/05/1727630.htmlnamespace是为了解决C++中的名字冲突而引入的。什么是名字冲突呢?比如,在文件x.h中有个类MyClass,在文件y.h中也有个类MyClass,而在文件z.cpp中要同时引用x.h和y.h文件。显然,按通常的方法是行不能的,那怎么办呢?引入namespace即可。例如:在x.h中的内容为// x.hnamespace MyNamespace1{ class MyClass { public:void f(); private:int m; }};在y.h 阅读全文
posted @ 2012-07-25 13:49 propheteia 阅读(156) 评论(0) 推荐(0) 编辑
摘要: /** * @brief The quick-and-easy status check. * * This allows you to write constructs such as * "if (!a_stream) ..." and "while (a_stream) ..."*/operator void*() const{ return this->fail() ? 0 : const_cast<basic_ios*>(this); }如果你把一个basic_ios类的对象(cin就是)放到if语句的括号里,它就会被转换成v 阅读全文
posted @ 2012-07-24 20:15 propheteia 阅读(3574) 评论(0) 推荐(0) 编辑
摘要: 程序:#include<string>using namespace std;string isbn;unsigned units_sold;double revenue;istream& input(istream& in){ in>>isbn>>units_sold>>revenue; if(in) cout<<"isbn:"<<isbn<<endl; cout<<"units_sold:"<<units_sold<< 阅读全文
posted @ 2012-07-19 20:14 propheteia 阅读(251) 评论(0) 推荐(0) 编辑