2015年12月14日

12月14日,Progress库

摘要: Progress库继承timer库,在构造时开始计时,析构时结束计时并输出时间.#include#includeint main(){ boost::progress_timer t; //构造计时器t. Sleep(1000); t.~progress_time... 阅读全文

posted @ 2015-12-14 21:56 祈 阅读(100) 评论(0) 推荐(0) 编辑

2015年12月9日

12月9日,timer库

摘要: timer库,简单的计时器,可以计算运行时间 代码:#include#includeusing namespace std;int main(){ boost::timer t; cout<<t.elapsed_max()<<endl; cout<<t.elaps... 阅读全文

posted @ 2015-12-09 22:23 祈 阅读(122) 评论(0) 推荐(0) 编辑

2015年12月7日

12月7日,BOOST库安装及配置

摘要: 历经千辛万苦,安装完成boost,编写了hello boost#include#include#includeusing namespace std;int main(){ cout<<BOOST_VERSION<<endl; cout<<BOOST_LIB_VERSI... 阅读全文

posted @ 2015-12-07 17:25 祈 阅读(135) 评论(0) 推荐(0) 编辑

12月7日开始学习Boost

摘要: 每日学习一节,同步更新代码。 阅读全文

posted @ 2015-12-07 17:19 祈 阅读(106) 评论(0) 推荐(0) 编辑

2015年11月12日

is not allowed to connect to this MySQL server解决办法

摘要: ERROR 1130: Host ’192.168.1.3′ is not allowed to connect to this MySQL server这是告诉你没有权限连接指定IP的主机 处理方法有二个 1、(如何解决客户端与服务器端的连接(mysql) :xxx.xxx.xxx.xxx i... 阅读全文

posted @ 2015-11-12 23:57 祈 阅读(277) 评论(0) 推荐(0) 编辑

2015年11月10日

清华学堂练习题——传纸条

摘要:  阶段:共走m+n-2步,共有m+n-2个阶段 (因为左上角起点坐标为(1,1)) 状态: for(int k=1;km?m:k+2; for(int i=1;i #include int max(int a, int b) { return ... 阅读全文

posted @ 2015-11-10 18:04 祈 阅读(140) 评论(0) 推荐(0) 编辑

2015年11月5日

makefile经典教程

摘要: makefile很重要 什么是makefile?或许很多Winodws的程序员都不知道这个东西,因为那些Windows的IDE都为你做了这个工作,但我觉得要作一个好的和professional的程序员,makefile还是要懂。这就好像现在有这么多的HTML的编辑器,但如果你想成... 阅读全文

posted @ 2015-11-05 17:54 祈 阅读(223) 评论(0) 推荐(0) 编辑

2015年9月25日

启动mysql服务命令

摘要: 1.root下输入systemctl start mysqld.service即可 阅读全文

posted @ 2015-09-25 16:31 祈 阅读(110) 评论(0) 推荐(0) 编辑

2015年9月24日

Fedora22 安装VM12教程

摘要: 1.官网下载VMware-Workstation-Full-12.0.0-2985596.x86_64.bundle(bundle结尾的文件) 2.在root的桌面环境下,chmod 777 上述文件绝对路径 3../XXXX(上述文件绝对路径)来安装。 4.如果提示找不到头文件,则dnf up... 阅读全文

posted @ 2015-09-24 17:54 祈 阅读(148) 评论(0) 推荐(0) 编辑

2015年9月16日

ArchLinux安装教程

摘要: 1.进入/dev,看到sda,sdb就是你的硬盘 2.fdisk /dev/sda 给硬盘分区 3.格式化分区 mkfs.ext4 /dev/sdaX 格式化为ext4 4.mkswap 格式化为swap 使用swapon启用 5.使用mount挂载,mount /dev/sda1 /mnt 6... 阅读全文

posted @ 2015-09-16 23:28 祈 阅读(140) 评论(0) 推荐(0) 编辑

导航