上一页 1 ··· 117 118 119 120 121 122 123 124 125 ··· 146 下一页
摘要: Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front 阅读全文
posted @ 2017-05-03 17:50 zsychanpin 阅读(236) 评论(0) 推荐(0)
摘要: 一、autokeyword的前世 从C语言開始,autokeyword就被当作是一个变量的存储类型修饰符,表示自己主动变量(局部变量)。它不能被单独使用,否则编译器会给出警告。 #include <stdio.h> int main() { int a = 123; auto int b = 234 阅读全文
posted @ 2017-05-03 16:29 zsychanpin 阅读(284) 评论(0) 推荐(0)
摘要: 成都卫星地图是用百度卫星下载的,百度卫星地图在国内比谷歌卫星地图清晰和渲染色彩丰富些。地图是有地图+标签生成,也可单独生成。地图可能有17-18级左右的样子。浏览图一般都是截取卫星图一部分,为浏览方便。均展示19、17、15级卫星图各一张。 高清卫星地图来源:http://www.arceyes.c 阅读全文
posted @ 2017-05-03 14:54 zsychanpin 阅读(880) 评论(0) 推荐(0)
摘要: 环境为win7+virtualbox 中的centos6.5 安装Glance 的包 yum install openstack-glance python-glanceclient -y 配置Glance 连接数据库 openstack-config --set /etc/glance/glanc 阅读全文
posted @ 2017-05-03 14:04 zsychanpin 阅读(859) 评论(0) 推荐(0)
摘要: 使用pmap查看进程内存 执行命令 使用pmap能够查看某一个进程(非java的也能够)的内存使用使用情况, 命令格式: pmap 进程id 演示样例说明 比如执行: pmap 12358 显示结果例如以下图(内容较多, 分成几张图说明): 内容開始部分 内容结束部分 上图中, 第一列。内存块起始地 阅读全文
posted @ 2017-05-03 13:33 zsychanpin 阅读(11453) 评论(1) 推荐(1)
摘要: Apple Tree Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 21191 Accepted: 6436 Description There is an apple tree outside of kaka's house. 阅读全文
posted @ 2017-05-03 12:30 zsychanpin 阅读(459) 评论(0) 推荐(0)
摘要: Zig-Zag 在图形图像处理中经常须要将一个二维的图像矩阵转化为一维的向量。二维化一维的过程实际上就是将二维数组的元素按某种顺序构成一维数组。一种经常使用的序列叫“Zig-Zag”序列。它按下面顺序将二维数组转化为一维数组: 你的任务,就是写一个程序把给定的二维数组按“Zig-Zag”顺序转化为一 阅读全文
posted @ 2017-05-03 11:06 zsychanpin 阅读(290) 评论(0) 推荐(0)
摘要: 今天学习了shell的主要的操作,例如以下: 1.创建一个数据库foobar use foobar 2.给指定的数据库加入集合,并加入记录 db.person.insert({"name":"abc"}) 3.查看全部的数据库 show dbs 4.查询数据库中的全部文档 show collecti 阅读全文
posted @ 2017-05-03 10:05 zsychanpin 阅读(148) 评论(0) 推荐(0)
摘要: 所谓的异质链表就是的节点元素类型能够不同。本实例採用C++抽象类和多态实现。 #include <QApplication> #include<QPushButton> #include<QLabel> // 基类 class base { public: virtual void show()=0 阅读全文
posted @ 2017-05-03 08:50 zsychanpin 阅读(593) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1885 再贴一个链接http://blog.csdn.net/u013081425/article/details/21756237 #include <stdio.h> #include <string.h> # 阅读全文
posted @ 2017-05-02 20:59 zsychanpin 阅读(120) 评论(0) 推荐(0)
上一页 1 ··· 117 118 119 120 121 122 123 124 125 ··· 146 下一页