C++中有一种类叫函数对象又称仿函数,到底什么是函数对象呢?其实函数对象就是一个类实现了括号操作符重载,即称为函数对象、仿函数,因为它的对象可以像使用一个函数一样来使用。 1 #include 2 using namespace std; 3 4 class Square 5 { 6 publi.....
分类:
编程语言 时间:
2014-08-01 10:35:31
阅读次数:
243
译者序:带学生看Xcode API 文档的时候,总有学生被通篇的英文搞晕,并询问是否有中文版。
初步搜索和询问的结果是,中文版有但是很少。
于是决心从今天开始对Xcode文档进行翻译,这次的主题是"Toll-Free Bridging"。...
分类:
其他好文 时间:
2014-08-01 00:01:17
阅读次数:
281
Problem Description
Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a piece of wall.
A blockh...
分类:
Web程序 时间:
2014-07-31 21:05:27
阅读次数:
356
一些可以获得免费背景图片的网站:http://www.freevectordownload.com/Free_Vector_Banners.asphttp://www.vectorportal.comhttp://www.vectorjungle.comhttp://www.vectorjunky....
分类:
Web程序 时间:
2014-07-31 20:13:57
阅读次数:
289
我一直非常关注Linux系统中的内存管理,想了解这一机制的工作过程,断断续续看了几年书,觉得有时候有收获,但是过一段时间就忘记了,让人觉得这个子系统很庞大,无从下手。最近看了很多书,对以malloc为切入点的linux内存管理有了一定的认识,在这里首先将需要的参考资料列出来,稍后手动实现的时候再补上。主要的参考资料有:
《深入理解Linux内核》:关于X86的Linux的段页式存储机制(第二章内...
分类:
其他好文 时间:
2014-07-31 17:09:26
阅读次数:
178
Square Thumbnail with ImageThe above code creates a square thumbnail with an image on the inside.Examples:The following attributes can be added to any...
分类:
其他好文 时间:
2014-07-31 16:35:36
阅读次数:
246
javascript中的函数、对象1. 在javascript中,函数是被当成一种数据类型,它可以被存储在一个变量、数组、对象中,可以被当作参数传递到另一个函数中。函数就像是字符串和数字这样的的数据类型,它可以是其它对象的一个属性2. 函数定义的三种方式:function square(x) { r...
分类:
编程语言 时间:
2014-07-31 13:12:06
阅读次数:
184
The Plaza Beauty also are ghd cheap australia raffling off free refurbishments every hour. Some moat people that have long hair be needing being extra...
分类:
其他好文 时间:
2014-07-31 12:58:56
阅读次数:
204
Red and BlackTime Limit:2 Seconds Memory Limit:65536 KBThere is a rectangular room, covered with square tiles. Each tile is colored either red or blac...
分类:
其他好文 时间:
2014-07-31 12:18:26
阅读次数:
213
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1518题目大意:根据题目所给的几条边,来判断是否能构成正方形,一个很好的深搜应用,注意剪枝,以防超时! 1 #include 2 #include 3 #include 4 #include 5 u...
分类:
其他好文 时间:
2014-07-31 09:38:55
阅读次数:
175