上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 41 下一页
摘要: 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 微雪 阅读(3583) 评论(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 微雪 阅读(265) 评论(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 微雪 阅读(13617) 评论(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 微雪 阅读(372) 评论(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 微雪 阅读(425) 评论(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 微雪 阅读(451) 评论(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 微雪 阅读(4116) 评论(0) 推荐(0) 编辑
摘要: C++/C学习笔记(十) ——存储分配器和适配器1.存储分配器STL容器元素的存储空间是动态分配和释放的,不同的硬件平台和操作系统对内存的管理方法和使用方法各不相同,STL为容器类定义了一个专门负责存储管理的类——allocator,但它仅针对内存管理。Allocator类是一个模版,作为容器类模版的一个policy参数,它不仅与将要为之分配空间的数据对象的类型无关,并且为动态内存的分配和释放提供了面向对象的接口。它是对new运算符的更高层次的抽象,即隐藏了底层的内存模式(段内存、共享内存、分布式内存等),封装了动态内存分配和释放操作,隐藏了指针本身的大小、存储空间重分配模型及内存页大小等细节 阅读全文
posted @ 2012-08-19 09:50 微雪 阅读(886) 评论(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 微雪 阅读(260) 评论(0) 推荐(0) 编辑
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 41 下一页