08 2012 档案

摘要:THE Prada-toting protagonists of “Sex and the City”, a once-popular American television show about single thirty-somethings in New York, are unlikely role models for Middle Eastern women. The second movie spin-off was partially set in Abu Dhabi, but the authorities stopped it from being filmed or ev 阅读全文
posted @ 2012-08-31 10:59 微雪 阅读(545) 评论(0) 推荐(0) 编辑
摘要:On China'sValentine's Day(the seventh day of the seventh lunar month in the Chinese calendar, which fell on 23 August this year), 30 migrant workers were taken by surprise when they were invited to a business networking dinner by several college students in Shanghai who, during their summer 阅读全文
posted @ 2012-08-30 10:47 微雪 阅读(676) 评论(0) 推荐(0) 编辑
摘要:Popular Chinese websites on Monday ran photos from anti-Japan protests across the nation, showing images of flipped-over and smashed Japanese-model cars in apparent reaction to a China-Japan dispute over a clutch of rocky islands.Conflicted:冲突的,抵制的,矛盾的 smashed:破碎的 a clutch of:一小撮 But in a... 阅读全文
posted @ 2012-08-28 11:00 微雪 阅读(253) 评论(0) 推荐(0) 编辑
摘要:一、研究生与大学生的区别 首先跟大家说明一下研究生和大学生的区别。大学生基本上是来接受学问、接受知识的,然而不管是对于硕士时期或是博士时期的研究而言,都应该准备要开始制造新的知识,我们在美国得到博士学位时都会领到看不懂的毕业证书,在一个偶然的机会下,我问了一位懂拉丁文的人,上面的内容为何?他告诉我:「里头写的是恭喜你对人类的知识有所创新,因此授予你这个学位。」在中国原本并没有博硕士的学历,但是在西方他们原来的用意是,恭贺你已经对人类普遍的知识有所创新,这个创新或大或小,都是对于普遍的知识有所贡献。这个创新不会因为你做本土与否而有所不同,所以第一个我们必须要很用心、很深刻的思考,大学生和研究生. 阅读全文
posted @ 2012-08-28 00:06 微雪 阅读(182) 评论(0) 推荐(0) 编辑
摘要:Can an Ancient Chinese City Pursue Preservation Without Disney-fication?One of China’s last intact walled cities is undergoing something of an identity crisis. Pingyao, in China’s Shanxi province, has endured for 2, 700 years, escaping the destruction of the Cultural Revolution because the city was 阅读全文
posted @ 2012-08-27 23:51 微雪 阅读(328) 评论(0) 推荐(0) 编辑
摘要:Sore back, stiff neck, aching wrists? All of us office desk-junkies have had some or all of these problems at some point in our working life.Sore:疼痛的,痛心的;剧烈的,极度的;恼火的,发怒的;厉害的,迫切的,溃疡,痛处;恨事,伤心事stiff:. 呆板的;坚硬的;严厉的;拘谨的;拘谨的,. 僵硬地;彻底地,死尸,劳动者strain:. 张力;拉紧;负担;扭伤;血缘,. 尽力;滥用;滤去;竭力We sit for long hours in fron 阅读全文
posted @ 2012-08-26 20:48 微雪 阅读(576) 评论(0) 推荐(0) 编辑
摘要:Job cuts in China appear to be on the rise, dimming prospects for a labor market that has been a resilient bright spot amid a slowdown in the world's second-largest economy.dimming:调光;变暗 resilient:弹回的,有弹力的 slowdown:减速;怠工;降低速度 The latest sign came on Thursday, when preliminary gauges of August... 阅读全文
posted @ 2012-08-25 22:16 微雪 阅读(259) 评论(0) 推荐(0) 编辑
摘要:As an ophthalmologist, David Ingvoldstad sees much more about his patients' health than just their eyes. Thanks to the clues the eyes provide, he regularly alerts patients to possible autoimmune diseases like rheumatoid arthritis and lupus, monitors progression of their diabetes and once even su 阅读全文
posted @ 2012-08-24 21:21 微雪 阅读(234) 评论(0) 推荐(0) 编辑
摘要:I don't blame Mo Farah, Pele and Haile Gebrselassie, who lined up, all hugs and smiles, outside Downing Street for a photocall at the prime minister's hunger summit. Perhaps they were unaware of the way in which they were being used to promote David Cameron's corporate and paternalistic 阅读全文
posted @ 2012-08-23 21:13 微雪 阅读(180) 评论(0) 推荐(0) 编辑
摘要:As the rapid aging of Asia's population creates challenges for governments and societies, new opportunities are emerging for businesses serving the needs of the elderly and their caretakers.emerging:新兴的,出现的,形成的,浮现,显露 While population aging is a global phenomenon, the Asian-Pacific region is expe 阅读全文
posted @ 2012-08-22 20:50 微雪 阅读(398) 评论(0) 推荐(0) 编辑
摘要:1.初始化矩阵:方式一、逐点赋值式:CvMat* mat = cvCreateMat( 2, 2, CV_64FC1 );cvZero( mat );cvmSet( mat, 0, 0, 1 );cvmSet( mat, 0, 1, 2 );cvmSet( mat, 1, 0, 3 );cvmSet( mat, 2, 2, 4 );cvReleaseMat( &mat );方式二、连接现有数组式:double a[] = { 1, 2, 3, 4,5, 6, 7, 8,9, 10, 11, 12 };CvMat mat = cvMat( 3, 4, CV_64FC1, a ); // 阅读全文
posted @ 2012-08-22 15:46 微雪 阅读(3587) 评论(0) 推荐(0) 编辑
摘要:A landing by Japanese activists Sunday on an island claimed by Japan, China and Taiwan sparked anti-Japanese protests across China, as tensions continued to rise in a pair of territorial spats roiling relations in East Asia.territorial:领土的,地方的,区域的 spat:争吵,口角 The flare-ups are also adding to the ... 阅读全文
posted @ 2012-08-21 16:56 微雪 阅读(266) 评论(0) 推荐(0) 编辑
摘要:C++ STL Adaptor stack、queue和vector的使用1.Stacktop()返回栈顶元素,并不移除这个元素empty()如果栈空返回true,否则falsesize()栈的大小void push()插入元素到栈顶void pop()移除栈顶元素#include<iostream>#include<stack>using namespace std;void main(){stack<char> v;for(int i=0;i<10;i++)v.push(i+97);cout<<v.size()<<endl; 阅读全文
posted @ 2012-08-21 10:21 微雪 阅读(13622) 评论(0) 推荐(0) 编辑
摘要:warning C4018: “<”: 有符号/无符号不匹配 出错代码 for(int j=0;j<detector.size();j++)出错原因分析: detector 是一个Vector容器 ,detecot.size() 在容器说明中 被定义为: unsigned int 类型, 而j是int 类型 所以会出现: 有符号/无符号不匹配 警告 错误改正 : 定义j为unsigned 类型后就可以了 即: for(unsigned int j=0;j<detector.size();j++) 阅读全文
posted @ 2012-08-21 09:46 微雪 阅读(373) 评论(0) 推荐(0) 编辑
摘要:Maybe you’re in a relationship trough – arguments and hassle or disconnection and silent parallel lives. Of maybe it's less major: your husband leaves his socks on the floor and it drives you nuts, or your wife doesn’t help you get the kids to bed.trough:水槽,水槽;低谷期;饲料槽;低气压 hassle:找麻烦,搅扰;与…争辩;使…烦恼 阅读全文
posted @ 2012-08-20 20:51 微雪 阅读(427) 评论(0) 推荐(0) 编辑
摘要:“We speak good English!”The private dining room in Changzhou No. 1 Middle School rattles with the shout, shaking the 22 American students within awake.rattle:使发出咯咯声;喋喋不休;使慌乱,使惊慌,吓吱声“We will conquer English!”The roar is coming from the throats of several hundred Chinese students attending the Li Yang 阅读全文
posted @ 2012-08-19 21:30 微雪 阅读(453) 评论(0) 推荐(0) 编辑
摘要:单个的结构体类型变量在解决实际问题时作用不大,一般是以结构体类型数组的形式出现。结构体类型数组的定义形式为:struct stu / *定义学生结构体类型* /{char name[20]; / *学生姓名* /char sex; / *性别* /long num; / *学号* /float score[3]; / *三科考试成绩* /};struct stu stud[20]; 定/*义结构体类型数组stud ,*// *该数组有2 0个结构体类型元素* /其数组元素各成员的引用形式为:stud[0].name、stud[0].sex、stud[0].score[i];stud[1].na 阅读全文
posted @ 2012-08-19 11:14 微雪 阅读(4140) 评论(0) 推荐(0) 编辑
摘要:C++/C学习笔记(十) ——存储分配器和适配器1.存储分配器STL容器元素的存储空间是动态分配和释放的,不同的硬件平台和操作系统对内存的管理方法和使用方法各不相同,STL为容器类定义了一个专门负责存储管理的类——allocator,但它仅针对内存管理。Allocator类是一个模版,作为容器类模版的一个policy参数,它不仅与将要为之分配空间的数据对象的类型无关,并且为动态内存的分配和释放提供了面向对象的接口。它是对new运算符的更高层次的抽象,即隐藏了底层的内存模式(段内存、共享内存、分布式内存等),封装了动态内存分配和释放操作,隐藏了指针本身的大小、存储空间重分配模型及内存页大小等细节 阅读全文
posted @ 2012-08-19 09:50 微雪 阅读(891) 评论(0) 推荐(0) 编辑
摘要:The sharpest downturn in growth since the financial crisis doesn't appear to have dampened the spirits of China's consumers too much.Conflicted:冲突的,抵制的 dampen:抑制,使...沮丧,使...潮湿,丧气 downturn:衰退,低迷时期,逆转Retail sales growth came in at a robust 14% on-year in the second quarter. A survey of sales o 阅读全文
posted @ 2012-08-18 19:31 微雪 阅读(263) 评论(0) 推荐(0) 编辑
摘要:C++/C学习笔记(十) ——迭代器1.迭代器(1)迭代器的本质循环结构有两种控制方式:标志控制和计数控制。迭代器可以把这两种标志控制的循环统一为一种控制方法:迭代器控制,每一次迭代操作中对迭代器的修改就等价于修改标志或计数器。在STL中,容器的迭代器被作为容器元素对象或者I/O流中的对象的位置指示器,因此可以把它理解为面向对象的指针——一种泛型指针或通用指针,不依赖于元素的真实类型。迭代器的概念如图所示:set<int>::iteratoriter... 阅读全文
posted @ 2012-08-18 13:44 微雪 阅读(6023) 评论(0) 推荐(0) 编辑
摘要:C++/C学习笔记(九) ——学习和使用STL1.STL简介STL(StandardTemplateLibrary)是C++标准库的最主要和最重要的组成部分。STL是一个标准规范,只是为容器、迭代器和泛型算法等组件定义了一整套统一的上层访问接口及各种组件搭配运用的一般规则,而没有定义组件底层的具体实现方法,因此不同的软件供应商都可以提供自己的STL实现版本,如Microsoft、Borland、HP、SGI等,虽然这些版本之间可能存在某些差异,但是概... 阅读全文
posted @ 2012-08-17 15:25 微雪 阅读(353) 评论(0) 推荐(0) 编辑
摘要:文件 I/O 在C++中比烤蛋糕简单多了。 在这篇文章里,我会详细解释ASCII和二进制文件的输入输出的每个细节,值得注意的是,所有这些都是用C++完成的。 一、ASCII 输出 为了使用下面的方法, 你必须包含头文件<fstream.h>(译者注:在标准C++中,已经使用<fstream>取代< fstream.h>,所有的C++标准头文件都是无后缀的。)。这是 <iostream.h>的一个扩展集, 提供有缓冲的文件输入输出操作. 事实上, <iostream.h> 已经被<fstream.h>包含了, 所以你不必包含 阅读全文
posted @ 2012-08-17 09:44 微雪 阅读(11955) 评论(0) 推荐(1) 编辑
摘要:转自:http://blog.csdn.net/xiaowei_cqu/article/details/7558657在《访问图像中每个像素的值》中我们介绍了存储图像的结构体IplImage的数据结构。多通道字节/浮点型图像中存储了每个像素RGB三信道的值。最近在做的项目中需要提取图像ROI区域RGB的平均值,发现有一个cvAvg函数:CvScalarcvAvg(constCvArr*arr,constCvArr*mask=NULL);可以独立计算数组每个通道的平均值,非常方便。所以用如下方式即可达到效果:CvScalaravgChannels=cvAvg(img);doubleavgB=av 阅读全文
posted @ 2012-08-17 09:24 微雪 阅读(3927) 评论(0) 推荐(0) 编辑
摘要:As the 2012 London Olympics came to a close, China managed to produce one last eyebrow-raising number.Contemplative:沉思的,冥想的,默想的 Tumultuous:吵闹的,骚乱的,狂暴的,喧嚣的,纷乱的In an infographic published a few hours after the Olympic flame was extinguished, Chinese Internet company Sina Corp. revealed that users o... 阅读全文
posted @ 2012-08-16 15:49 微雪 阅读(199) 评论(0) 推荐(0) 编辑
摘要:在做分类时常常需要估算不同样本之间的相似性度量(Similarity Measurement),这时通常采用的方法就是计算样本间的“距离”(Distance)。采用什么样的方法计算距离是很讲究,甚至关系到分类的正确与否。 本文的目的就是对常用的相似性度量作一个总结。本文目录:1. 欧氏距离2. 曼哈顿距离3. 切比雪夫距离4. 闵可夫斯基距离5. 标准化欧氏距离6. 马氏距离7. 夹角余弦8. 汉明距离9. 杰卡德距离 & 杰卡德相似系数10. 相关系数 & 相关距离11. 信息熵1.欧氏距离(Euclidean Distance)欧氏距离是最易于理解的一种距离计算方法,源自欧 阅读全文
posted @ 2012-08-16 14:54 微雪 阅读(507) 评论(0) 推荐(1) 编辑
摘要:According to local media reports, the cost of grooming China's new Olympic swimming star, Sun Yang, amounted to 10 million yuan ($1.57 million) over the past two years. That's 5 million yuan per gold medal, for those keeping track at home.grooming:修饰,喂马,推荐 amounted to:总计Chinese Internet user 阅读全文
posted @ 2012-08-15 21:20 微雪 阅读(179) 评论(0) 推荐(0) 编辑
摘要:The overriding and dominant theme of the Chinese middle class is its almost manic desire to achieve status, to aspire to what it perceives to be a better life. To live in some comfort and space, to own consumer items ( be it a smartphone or luxury handbag) that is branded for success, to eat and dri 阅读全文
posted @ 2012-08-14 18:52 微雪 阅读(278) 评论(0) 推荐(0) 编辑
摘要:【导读】 中国有句古话叫欲速则不达。中国社保制度短短几年内达到很高的覆盖率,可覆盖率之下的质量呢?吵得沸沸扬扬的养老金入市呢?什么是养老金空头账户?为什么中国不能学习西方?Congratulate China for building the foundations of a pension system so quickly. Now it needs to restructure it.pension:养老金,退休金,抚恤金 restructure:调整,重建,更改结构THE 18th-century Chinese emperor Qianlong made elaborate... 阅读全文
posted @ 2012-08-13 18:01 微雪 阅读(819) 评论(0) 推荐(0) 编辑
摘要:需要自己写颜色空间转换的小程序,其中涉及到LOG运算及atan运算,所以在运算过程中用到double类型数据,但最后许转换为IPL_DEPTH_8U类型,故申请了一幅图像IplImage* hue64f = cvCreateImage( cvGetSize(src),IPL_DEPTH_64F, 1 );来存储中间变量。但是问题也随之而来。问题1:按照公式计算完,然后再应用ConvertScale转换数据类型,但转换结果都是0;然后从头开始查找错误问题二:数据中存在1.#IND,1.#INF类似数据;原因:1)像素值为0计算LOG值为负无穷;2)在计算除法时注意判断分母是否为0,如果接近于0也 阅读全文
posted @ 2012-08-13 10:52 微雪 阅读(4137) 评论(0) 推荐(0) 编辑
摘要:Intelligence may be somewhat innate, but wisdom can most certainly be learned. Here’s how to wise up at any age.innate:先天的,固有的,与生俱来的 wise up:使知道,使了解,健脑Wisdom vs. IntelligenceAlthough people value intelligence—understanding, reasoning, the ability to learn—they also respect wisdom, or the knowle... 阅读全文
posted @ 2012-08-12 20:46 微雪 阅读(654) 评论(0) 推荐(0) 编辑
摘要:HONG KONG — China continues to lead the Olympic medal standings, just ahead of the United States, as the country tries to repeat its breakout performance at the 2008 Beijing Games.fever:发烧,发热,狂热 Despite its success, or perhaps because of it, China is also vigorously debating whether it’s overly o... 阅读全文
posted @ 2012-08-11 17:22 微雪 阅读(321) 评论(0) 推荐(0) 编辑
摘要:我们在计算机视觉相关的实验中都需要视频与图片序列之间相互转换,在平时的实验中,经常需要将视频保存为一帧一帧的图片,以获取实验结果;另一方面,很多标准的算法测试数据库都是图片序列(文件名以帧号+图片扩展名),我们可能需要将其转换为视频,因此视频与图片之间的转换是很常见的操作。在网上找到比较好的测试程序,一方面将其封装为函数,方便调用;另一方面,视频转图片可以任意设定图片输出目录,函数会自动创建相关目录;图片序列转视频可以设定更多的参数,也就可以更好的控制,而且可以自行设定视频输出的目录,函数自动检测并创建相关目录。适合windows平台+OpenCV;代码如下:View Code 1 // .. 阅读全文
posted @ 2012-08-11 10:41 微雪 阅读(8903) 评论(0) 推荐(0) 编辑
摘要:There is no event more obviously tailored to the internet's capabilities than the Olympics. It combines an enormous number of statistics derived from a vast array of sports, and sets them before an actively engaged worldwide population to discuss, tweet, like and recommend. It allows for fetishi 阅读全文
posted @ 2012-08-10 15:42 微雪 阅读(196) 评论(0) 推荐(0) 编辑
摘要:YOUNGSTERS enter the office of Inspiring Interns through what looks like a wardrobe door. The reference to C.S. Lewis’s “The Lion, the Witch and the Wardrobe” is deliberate: the company wants them to feel transported into a magical new world where they might actually find a job.recruit:招募,招聘,补充 i... 阅读全文
posted @ 2012-08-09 13:56 微雪 阅读(649) 评论(0) 推荐(0) 编辑
摘要:C++/C学习笔记(八) ——C++编译预处理1.文件包含(1)基本定义和方式#include伪指令用于包含一个头文件,头文件中存放的一般是模块接口,编译预处理器在扫描到该伪指令后就用对应的文本内容替换它。文件包含有两种语法形式:①#include<头文件名称> ——一般用来包含开发环境提供的库头文件,它指示编译预处理器在开发环境设定的搜索路径中查找所需的头文件。②#include"头文件名称" ——一般用来包含自己编写的头文件,它指示编译预处理器首先在当前工作目录下搜索头文件,如果找不到的话再到开发环境设定的路径中... 阅读全文
posted @ 2012-08-09 11:56 微雪 阅读(1535) 评论(0) 推荐(1) 编辑
摘要:C++/C学习笔记(七)1.联合(union)联合也是一种构造数据类型,它提供了一种使不同成员之间共享存储空间的方法,同时可以实现不同类型数据成员之间的自动类型转换。但与结构不同的是,联合对象在同一时间只能存储一个成员的值(即只有一个数据是活跃的)。联合的内存大小取决于其中字节数最多的成员,而不是累加,联合也会进行字长对齐,与位域不同的是,使用联合不会带来任何额外的运行时开销。联合中存储的数据的值完全取决于对它的解释方式。在定义联合变量时可以指定初始值,但是只能指定一个初始值,而且该初始值的类型必须与联合的第一个成员的类型匹配。可以取一个联... 阅读全文
posted @ 2012-08-08 17:26 微雪 阅读(233) 评论(0) 推荐(0) 编辑
摘要:Is the mass political party on its way out? And does it matter?BELONGING to a political party has never been cheaper. It costs just €20 (25)ayeartobeamemberoftheSocialistPartyinFrance.BritainsConservativesaskyoutostumpuponly£25(39). New political movements set you back 阅读全文
posted @ 2012-08-08 11:11 微雪 阅读(521) 评论(0) 推荐(0) 编辑
摘要:American swim coach John Leonard stirred the controversy over Ye Shiwen’s incredible 400 IM describing it as “unbelievable”, “suspicious” and “disturbing” (as reported in the Guardian). Of course the suspicion, given China’s history and secretive nature, is that Ye Shiwen has been aided by performan 阅读全文
posted @ 2012-08-07 12:44 微雪 阅读(262) 评论(0) 推荐(0) 编辑
摘要:C++/C学习笔记(六)1.结构(struct)(1)定义C语言支持把基本数据类型组合起来形成更大的构造数据类型,这就是C语言的struct,有时也称为用户自定义数据类型(UDT)。构造数据类型还可以嵌套(对象嵌入)和引用(对像关联)。构造数据类型是一个递归的定义:①由若干基本数据类型组合而成的类型是构造数据类型;②由若干基本数据类型和构造数据类型组合而成的类型是构造数据类型;③由若干构造数据类型组合而成的类型是构造数据类型;语言本身的这种能力使我们能够定义非常复杂的数据结构,例如树(tree)、链表(list)、映射(map)等.(2)关键字struct与... 阅读全文
posted @ 2012-08-07 11:21 微雪 阅读(385) 评论(0) 推荐(0) 编辑
摘要:Oh, the power of a good night’s sleep. A whole gamut of positive benefits can be seen from getting enough rest, but for many of us, hitting the sack can be challenging. There’s plenty of advice out there about what to do to get to sleep but what about what not to do? Click through for some of the .. 阅读全文
posted @ 2012-08-06 16:45 微雪 阅读(239) 评论(0) 推荐(0) 编辑
摘要:很多初学者或者是想当然,或者是被网上的一些错误信息给误导,面试中问到class和struct区别时经常会说class可以继承而struct不可以继承,这是完全错误的。但在C#中,class与struct确实有这点区别(当然不止这一点)。其实,在C++中,这两个关键词并没有大的区别,仅在细节上有些不同。1。 字面上的区别在字面上struct是structure的缩写,通常叫做“结构体”,在C语言里用于将多种数据、多个变量组织在一起,便于表达比较复杂的数据类型,在C++中为了兼容C语言保留了该关键字,并且保留了C语言中的所有功能。而class,则称作“类”,是C++新增来支持面向对象思想概念中“类 阅读全文
posted @ 2012-08-06 13:14 微雪 阅读(313) 评论(0) 推荐(1) 编辑
摘要:1.引言提起class和struct,我们率先的感受是语法几乎雷同,待遇却翻天复地。历史将接力棒由面向过程编程传到面向对象编程,class和struct也担负着各自的命运前行。在我感受,struct英雄迟暮,class天下独行,最性质的差异是class是引用种类,而struct是值种类,它们在内存中的分配情形有所差异。由此发生的一系列差异性,本文将做以全面谈论。2. 大约观念2.1. 什么是class?class(类)是面向对象编程的大约观念,是一种自定义数据构造种类,等闲包括字段、属性、措施、属性、构造函数、索引器、垄断符等。因为是大约的观念,因而无须在此翔实描写,读者能够查询相干观念打听。 阅读全文
posted @ 2012-08-06 13:11 微雪 阅读(311) 评论(1) 推荐(0) 编辑
摘要:当private,public,protected单纯的作为一个类中的成员权限设置时:private: 只能由该类中的函数、其友元函数访问,不能被任何其他访问,该类的对象也不能访问.protected: 可以被该类中的函数、子类的函数、以及其友元函数访问,但不能被该类的对象访问public: 可以被该类中的函数、子类的函数、其友元函数访问,也可以由该类的对象访问注:友元函数包括两种:设为友元的全局函数,设为友元类中的成员函数当private,public,protected作为继承方式时:对于公有继承方式:(1)父类的public成员成为子类的public成员,允许类以外的代码访问这些成员;( 阅读全文
posted @ 2012-08-06 13:01 微雪 阅读(244) 评论(0) 推荐(0) 编辑
摘要:C++/C学习笔记(五)1.指针(1)指针类型及支持的运算指针是变量,在二进制层面,指针的值就是内存单元的地址,而变量又是引用内存单元的值的别名,因此在语言层面指针的值就是变量的地址。指针的类型为一个类型名和字符“*”的组合。但编译器解释的时候,“*”是和其后的变量名结合的。例如:int*a,b,c;编译器会理解为:int*a,b,c;即只有a是int类型的指针,而b和c仍然是int类型的变量。不管指针变量是全局的还是局部的、静态的还是非静态的,应当在声明它的同时初始化它,要么赋予它一个有效的地址,要么赋予它NULL,否则为野指针,运行程序时会出现错误。指针加减一个正整数i,其含义并不是在其值 阅读全文
posted @ 2012-08-06 12:02 微雪 阅读(274) 评论(0) 推荐(0) 编辑
摘要:本人按以下教程安装VS2010,可是在③ 在Debug下,选择Solution Explorer里的 Solution OpenCV,点右键,运行"Rebuild Solution";如编译无错误,再选择INSTALL项目,运行"Build"。这一步时,总是出现Rebuild solution时总出现error TRK0005: Failed to locate: "CL.exe".编译不能成功,但在VS2010安装文件夹里是有CL.exe的,不知道什么原因。。在这个博客里,看到有解决方案 http://blog.sina.com.c 阅读全文
posted @ 2012-08-06 10:19 微雪 阅读(4511) 评论(0) 推荐(0) 编辑
摘要:static关键字 1.作用于变量: 用static声明局部变量-------局部变量指在代码块{}内部定义的变量,只在代码块内部有效(作用域),其缺省的存储方式是自动变量或说是动态存储的,即指令执行到变量定义处时才给变量分配存储单元,跳出代码块时释放内存单元(生命期)。用static声明局部变量时,则改变变量的存储方式(生命期),使变量成为静态的局部变量,即编译时就为变量分配内存,直到程序退出才释放存储单元。这样,使得该局部变量有记忆功能,可以记忆上次的数据,不过由于仍是局部变量,因而只能在代码块内部使用(作用域不变)。 用static声明外部变量-------外部变量指在所有... 阅读全文
posted @ 2012-08-05 15:08 微雪 阅读(1685) 评论(0) 推荐(0) 编辑
摘要:1.CDataExchange没有基类。 CDataExchange支持Microsoft基本类使用的对话数据交换(DDX)和对话框数据验证(DDV)例程。当要为自定义数据类型或控件写数据交换例程和数据验证例程时使用这个类。CDataExchange对象提供了发生DDX和DDX所需要的上下文信息。DDX用于填充来自数据成员到对话控件的初始值时,标记m_bSaveAndValidate为FALSE。如果DDX用来设置对话控件的当前值到数据成员并且用DDV验证数据值有效性,标志m_bSaveAndValidate为TRUE。如果DDV有效性失败,DDV过程将显示解释输入错误的消息框。然后DDV调. 阅读全文
posted @ 2012-08-03 08:58 微雪 阅读(350) 评论(0) 推荐(0) 编辑
摘要:1.存储类型标准C语言为变量、常量、函数定义了4种存储类型:extern,auto,static,register,它们分别用一个关键字(存储类型说明符)来说明。这4种存储类型可分为两种生存期限:永久的(即整个程序执行期间都存在)【extern和static】和临时的(即暂时保存在堆栈和寄存器中)【auto和register】。全局变量和全局函数默认存储类型为extern,能够被定义在它们之后的同一个编译单元内的函数所调用,如果变量和函数被显式地加上extern声明,那么其他编译单元中的函数也能调用它们。若变量和函数被显式地加上static声明,那么它们具有static存储类型,只能被同一个编 阅读全文
posted @ 2012-08-02 11:06 微雪 阅读(886) 评论(0) 推荐(0) 编辑
摘要:1.函数原型和定义函数原型的格式:[作用域][函数的连接规范]返回值类型[函数的调用范围]函数名(类型1[形参名1],类型2[形参名2],...);形参:在函数原型或定义及catch语句的参数列表中被声明的对象或指针、宏定义中的参数、模版定义中的类型参数等。实参:函数调用语句中以逗号分隔的参数列表中的表达式、宏调用语句中以逗号分隔的列表中一个或多个预处理标识符的序列、throw语句的操作数、表达式的操作数、模版实例化时的实际类型参数等。函数调用中参数传递的本质就是用实参来初始化形参而不是替换形参。2.函数调用一般函数支持3种调用方式:像过程一样调用,嵌套调用,递归调用。若函数没有返回值,则不能 阅读全文
posted @ 2012-08-01 15:37 微雪 阅读(283) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示