上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 303 下一页
摘要: A quadtree is a representation format used to encode images. The fundamental idea behind the quadtree is that any image can be split into four quadrants. Each quadrant may again be split in four sub quadrants, etc. In the quadtree, the image is represented by a parent node, while the four quadrants 阅读全文
posted @ 2013-07-08 14:33 xinyuyuanm 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1. 控件在对话框中的适配。2. 图像和显示控件的适配。3. 以鼠标点为中心, 滚轮缩放图片(类似于手机图库)4. 鼠标拖动图片。(类似于手机图库)5。双击100%显示图片, 再次双击显示全图(类似于手机图库)6. 图像任意角度旋转。 1. 控件在对话框中的适配。 可以先参考我这篇文章: http://blog.csdn.net/fallingstar08/article/details/5182830 现在的控件不多我就这么写了void CEasyImageDlg::OnSize(UINT, int w, int h){ if(m_player.GetSafeHwnd()) { Mo... 阅读全文
posted @ 2013-07-08 14:31 xinyuyuanm 阅读(259) 评论(0) 推荐(0) 编辑
摘要: A Strange Tree (S-tree) over the variable setis a binary tree representing a Boolean function. Each path of the S-tree begins at therootnode and consists ofn+1 nodes. Each of the S-tree's nodes has adepth, which is the amount of nodes between itself and the root (so the root has depth 0). The no 阅读全文
posted @ 2013-07-08 14:29 xinyuyuanm 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 刚接触Linux时对Linux下的文件权限的概念一直很模糊,观念还一直停留在windows下,所以有很多操作一直提示权限不够。为了弄懂文件权限问题我查找了很多资料整理如下,我把这些学习笔记贴出来和大家一起分享,如有错误望指正。 对于Linux系统中的文件来说,有三种身份和四种权限:三种身份是: (1) u:文件的拥有者 (2) g:文件所属的群组 (3) o:其他用户 对于每个身份,又有四种权限,分别为: (1) r:读取文件的权限(read) (2) w:写入文件的权限(write) (3) x:执行的权限(execute) (4) s:特殊权限 在Linux系统中,文件... 阅读全文
posted @ 2013-07-08 14:27 xinyuyuanm 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Each year, fall in the North Central region is accompanied by the brilliant colors of the leaves on the trees, followed quickly by the falling leaves accumulating under the trees. If the same thing happened to binary trees, how large would the piles of leaves become? We assume each node in a binary. 阅读全文
posted @ 2013-07-08 14:25 xinyuyuanm 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Listing 1: ---------------------- dir *.csv type abc.csv sqlplus scott/tiger@orcl create table emp1 (name varchar2(80), salary number); host notepad abc.ctl load data infile abc.csv into table emp fields terminated by ',' TRAILING NULLCOLS (name, salary) sq... 阅读全文
posted @ 2013-07-08 14:23 xinyuyuanm 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 设计模式学习--迭代器模式(Iterator Pattern)概述———————————————————————————————————————————————————迭代器模式提供一种方法顺序访问一个聚合对象中的各个元素,而又不暴露其内部的表示把游走的任务放在迭代器上,而不是聚合上。这样简化了聚合的接口和实现,也让责任各得其所。 组合模式允许你将对象组成树形结构来表现“整体/部分”的层次结构。组合能让客户以一致的方式处理个别对象和对象组合。OO原则———————————————————————————————————————————————————封装变化多用组合,少用继承针对接口编程,不针 阅读全文
posted @ 2013-07-08 14:20 xinyuyuanm 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 先附上一张XML 大概图:详解见博客内容。 一、定义XML(EXtensible Markup Language) :可扩展标记语言。 设计的用途:用来描述,存储,传输数据信息。二、特色1、单纯的XML只具有描述性作用。XML被设计用来结构化、存储以及传输信息,看这个例子:下面是wyx 写给john 的email,存储为 XML:johnwyxgreetinghello,you are a good man!上面的这条便签具有自我描述性。它拥有标题以及内容,同时包含了发送者和接受者的信息。但是,这个XML 文档仍然没有做任何事情。它仅仅是包装在 XML 标签中的纯粹的信息。需要编写软件或者程序 阅读全文
posted @ 2013-07-08 14:18 xinyuyuanm 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Problem C: Life FormsYou may have wondered why most extraterrestrial life forms resemble humans, differing by superficial traits such as height, colour, wrinkles, ears, eyebrows and the like. A few bear no human resemblance; these typically have geometric or amorphous shapes like cubes, oil slicks o 阅读全文
posted @ 2013-07-08 14:17 xinyuyuanm 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 题目来源:http://community.topcoder.com/stat?c=problem_statement&pm=1692&rd=5858 比较简单。代码如下:#include #include using namespace std;class YahtzeeScore{public: int maxPoints(vector toss);};int YahtzeeScore::maxPoints(vector toss){ int i, j; int size = toss.size(); int maxP = 0; int sum; for (i = 0; i 阅读全文
posted @ 2013-07-08 14:15 xinyuyuanm 阅读(197) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 303 下一页