sort,kind的用法区别
kind作“种类、类别” 解时,是一个普通的用法。sort作“种类、类别”解,与kind没有大的区别。但应注意:①kind常用在比较正式的场合;②当对物体进行分类时,常用kind表示大类,用sort表示大类中的小类;③表示生物时常用kind,表示自然资源等常用sort。type作“型号、典型、范例”解,是一个比较正式的用词。如:Men’s blood can be divided into several types.(人的血型可分成好几种。)它们的具体用法如下:1. 表示单数名词,用a kind/sort of …“某种、一种(不明确的东西)”;this kind/sort of …“这种”或that kind/sort of…“那种”, 这时它们之后的名词都应是单数,但名词前不加冠词。例如:It was a kind/sort of animal with long ears and a short tail.(它是一种长着长耳朵和短尾巴的动物。)He spoke with a kind/sort of foreign accent.(他说话带有某种外国口音。)No one has ever been interested in this kind/sort of overcoat.(没有人对这种大衣感兴趣。)注意:a sort of/of a sort可以解释为“有点是又不完全是”,带有一定的贬义。如:He is a sort of teacher. (他可以算是一个教师。)They served a sort of coffee/coffee of a sort.(他们供应可以说是咖啡的东西。)2. 当表示复数名词时,一般不用these/those kind/sort of…,而应该用名词(复数)+of this/that kind/sort。例如:Pencil-boxes of this kind/sort sell well.(这种铅笔盒销路很好。)Questions of that kind/sort are very difficult.(那类问题非常难。)3. 如果是问句,问“哪一种……”,那要用What kind/sort of…,kind/sort前面不加冠词,of之后可以是单数名词,也可以是复数名词;若名词是单数,句中的动词也应为单数;若名词是复数,句中的动词也应为复数。例如:What kind/sort of tree is this?(这是哪一种树?)What kind/sort of trees are these?(这些是什么树?)What kind/sort of a person is he? He is a generous man.(他是什么样的人? 他很慷慨。)但是:①What kind of tree不同于What kind of a tree,前者问树的种类,后者问这个树怎么样。②What kind of a person和What sort of a person略有不同,前者正式,后者带有贬义。4. 如果kind/sort of与数词或不定代词连用时,应用其复数形式。例如:There are twenty five kinds of flowers in my garden.(在我的花园里有二十五种花。)All kinds of difficulties have to be overcome.(各种各样的困难都必须被克服。)5. 当kind/sort of修饰形容词、副词、动词时,解释为“有点“。例如:I’m feeling kind/sort of tired.(我觉得有点累。)They kind/ sort of laughed at me. (他们有点嘲笑我。)
sort的用法有那些
sort
n.
种类, 类别, 品种
品质, 本性, 性质
方法, 情形, 样子, 程度
某种人
【刷】 一套铅字; 【纺】同级毛, 同型毛
(一)群, (一)伙
under all sorts of names
以各种各样的名义
people of every sort and kind
各种各样的人
They’ll never stomach that sort of attitude.
他们永远不会容忍那样的态度。
He is the right sort.
他倒是挺合适的人。
He is my sort.
他正是我需要的人。
Queer sort (of a thing)this!
这(东西)倒挺妙!
This copy is hard on sorts .
【刷】这件稿子要用几种铅字排。
习惯用语
after a sort
有些, 稍微, 有几分
in a sort
有些, 稍微, 有几分
all of a sort
差不多, 大同小异
all sort(s) of (=of all sorts)
各种各样的
all sorts and conditions of men(=men of all conditions)
各种各样的人, 各阶层的人
and that sort of thing
以及诸如此类的事情, 等等
a sort of
一种, 可以说是…的东西
He is not my sort.
他不是我喜欢的那种人。
in any sort
无论如何, 必须
in a sort of way
略为, 比较
in some sort
多少, 稍微
in a sort
多少, 稍微
It takes all sorts (to make a world)
世上的人是形形色色
no sort of
毫无; 完全不是; 和…全不相称
nothing of the sort
根本没有那样的事情
of a sort
同一种, 相当的, 勉强称得上的, 较差的, 所谓的
of all sorts
各种各样的
of every sort and kind
各种各样的
of one’s sort
和某人同样身分的
of sorts
=of a sort
各种各样的, 未经挑选的
of the sort
那样的; 这类的…., 诸如此类的…
out of sorts
觉得不舒服, 情绪不佳, 心里不自在; 【刷】铅字不全
some sort of
某种 的, 仿佛, 多少有些
that sort of thing
那一类的事情
this sort of thing
那一类的事情
That’s your sort!
那样做挺好!
那就是你的想法!
the better sort
出色的人, 更高一级的人, 优秀的人
What sort of?
什么样的? 怎样的?
sort ill with sth.
同某事物不相称, 同某物不协调
sort of
有几分地; 在一定程度上
kind of
有几分地; 在一定程度上
sort out
整理好
挑出
解决
整顿
惩罚, 打败
解决…之间的问题, (使)恢复正常
sort out from
把…从…挑出来
sort well with sth.
同某物相称, 同某物协调
sort函数的具体用法
sort函数的用法:
做ACM题的时候,排序是一种经常要用到的操作。如果每次都自己写个冒泡之类的O(n^2)排序,不但程序容易超时,而且浪费宝贵的比赛时间,还很有可能写错。STL里面有个sort函数,可以直接对数组排序,复杂度为n*log2(n)。使用这个函数,需要包含头文件。
这个函数可以传两个参数或三个参数。第一个参数是要排序的区间首地址,第二个参数是区间尾地址的下一地址。也就是说,排序的区间是的元素进行排序,只要写sort(a,a+100)就行了,默认的排序方式是升序。
拿我出的“AC的策略”这题来说,需要对数组t的第0到len-1的元素排序,就写sort(t,t+len);
对向量v排序也差不多,sort(v.begin(),v.end());
排序的数据类型不局限于整数,只要是定义了小于运算的类型都可以,比如字符串类string。
如果是没有定义小于运算的数据类型,或者想改变排序的顺序,就要用到第三参数——比较函数。比较函数是一个自己定义的函数,返回值是bool型,它规定了什么样的关系才是“小于”。想把刚才的整数数组按降序排列,可以先定义一个比较函数cmp
bool cmp(int a,int b)
{
return a》b;
}
排序的时候就写sort(a,a+100,cmp);
假设自己定义了一个结构体node
struct node{
int a;
int b;
double c;
}
有一个node类型的数组node arr,想对它进行排序:先按a值升序排列,如果a值相同,再按b值降序排列,如果b还相同,就按c降序排列。就可以写这样一个比较函数:
以下是代码片段:
bool cmp(node x,node y)
{
if(x.a!=y.a) return x.a
if(x.b!=y.b) return x.b》y.b;
return return x.c》y.c;
} 排序时写sort(arr,a+100,cmp);
qsort(s),cmp);
int cmp(const void *a,const void *b)
{
return *(int *)a-*(int *)b;
}
一、对int类型数组排序
int num;
Sample:
int cmp ( const void *a , const void *b )
{
return *(int *)a – *(int *)b;
}
qsort(num,100,sizeof(num),cmp);
二、对char类型数组排序(同int类型)
char word;
Sample:
int cmp( const void *a , const void *b )
{
return *(char *)a – *(int *)b;
}
qsort(word,100,sizeof(word),cmp);
三、对double类型数组排序(特别要注意)
double in;
int cmp( const void *a , const void *b )
{
return *(double *)a 》 *(double *)b ? 1 : -1;
}
qsort(in,100,sizeof(in),cmp);
四、对结构体一级排序
struct In
{
double data;
int other;
}s
//按照data的值从小到大将结构体排序,关于结构体内的排序关键数据data的类型可以很多种,参考上面的例子写
int cmp( const void *a ,const void *b)
{
return ((In *)a)-》data – ((In *)b)-》data ;
}
qsort(s,100,sizeof(s),cmp);
五、对结构体
struct In
{
int x;
int y;
}s;
//按照x从小到大排序,当x相等时按照y从大到小排序
int cmp( const void *a , const void *b )
{
struct In *c = (In *)a;
struct In *d = (In *)b;
if(c-》x != d-》x) return c-》x – d-》x;
else return d-》y – c-》y;
}
qsort(s,100,sizeof(s),cmp);
六、对字符串进行排序
struct In
{
int data;
char str;
}s;
//按照结构体中字符串str的字典顺序排序
int cmp ( const void *a , const void *b )
{
return strcmp( ((In *)a)-》str , ((In *)b)-》str );
}
qsort(s,100,sizeof(s),cmp);
七、计算几何中求凸包的cmp
int cmp(const void *a,const void *b) //重点cmp函数,把除了1点外的所有点,旋转角度排序
{
struct point *c=(point *)a;
struct point *d=(point *)b;
if( calc(*c,*d,p) 《 0) return 1;
else if( !calc(*c,*d,p.y)) //如果在一条直线上,则把远的放在前面
return 1;
else return -1;
}
分类的英文短语sort
分类的英文短语:to sort out。
sort:n.种类;类别;品种;某一种(或某一类)人;分类;排序。
扩展资料
Their specific task is to sort through the reams of information and try to determine what it may mean
他们的具体任务就是将大量信息分类并努力弄清它们的意思。
They are classified in sorts.
它们是按品种分类的。
What sort of person would do a thing like that?
什么人会干那样的事呢?
There are many different sorts of animal on the island.
岛上有许多不同种类的动物。
The new approach had wide applicability to all sorts of different problems.
新方法广泛适用于解决各种各样的问题。
waste sort read pass worry
1
worry.根据其意思可知。别担心你妈妈了,她现在能做得很好了。
2
reading。读书是获取知识的一个好方法。动名词做主语。
3
wasting。我在房间撕东西的时候,妈妈进来了。把其他四个都做了,就知道这个的答案喽!也算是排除发啦。
4
sort.这是一个固定搭配。a
sort
of.
5
pass.别担心,我相信你一定可以通过下周的考试的。
some sort of前some有何作用求学霸指点
单词 some 有不同意思,这里 some 的意思是 “某”,“任何”
some sort of 某种,某样,什么,…
相等于
some type of
some kind of
这都是固定搭配。
例:
There isn’t some sort of rules against biking on this road, is there?
这里没有某种形式的规则不准许在这路上骑自行车,是吗?
换句话说
这里没有任何规则不准许在这路上骑自行车,是吗?
sort的用法有那些
sort
sort
《源自拉丁文“命运”的意思》
可数名词
1 种类 (kind)
this ~ of house=a house of this ~
这种房屋
these ~s of trees=trees of these ~s
这些种类的树木
problems of this ~ = (
口语)these ~ of problems这种 问题
all ~s and conditions of men
各式各样的人,各种类型的人
That’s the ~ of thing I want.
那就是我所要的东西
What ~ of (a) book do you want?.
你要哪一种书?
2 (口语) (…的) 人,东西
He is a good ~.
他是个好人
He is not my ~.
他不是我喜欢的那一型的人
It takes all ~s (to make a world).
世界上有各种各样的人
(所以不要见怪)
3‘印刷’某类型的一套铅字
after a sort
有些,有几分,稍为
a sort of ?
一种…,可以说是…的东西
a ~ of politician
可以说是政治家的人,像政治家那一类的人
in a sort = after a sort
of sorts = of a sort
蹩脚的,较差的
out of sorts(口语)
(1) 不舒服的,没精神的
(2) 心情不好的,闹脾气的
sort of
(口语)有些,有几分,有点,稍微
He was ~ of angry.
他有些生气了
The building ~ of tilted.
那栋建筑物有点倾斜
及物动词
把…加以分类; 拣《邮件》
S~ these cards according to their colors.
按颜色将这些卡片分类
sort out
(1) → v.t
(2) 把…
~ out the sheep from the goats
分开山羊和绵羊(区别善人与恶人)
She ~ed out her summer clothes.
她挑出夏季衣服
(3) 归纳《想法等》; 改善《事态》
(4)(英口语)整理,整顿; 解决 《问题、纠纷等》
(5)(英俚)严惩 《某人》
this kind of后用单数还是复数
this kind of后用单数。
表达意思:这种……。
固定搭配:this kind of thing 而我通常不会这样;this kind of person 此等人;cos this kind of moment 因为这一刻。
例句:It is never a good idea to take sleeping pills regularly for this kind of wakefulness.
对付这种失眠,经常吃安眠药绝不是什么好办法。
近义词介绍:this sort of
表达意思:这类;这种……。
固定搭配:this sort of foundation 该类型基础;This suggests some sort of 这就说明是某种。
例句:This sort of life is not calculated to appeal to a young man of 20.
这种生活对于一个20岁的年轻小伙子不大可能有吸引力。
we will try and sort this as soon as we can tomorrow.什么意思
明天我们会尽可能的早的(尽力)整理它.翻成中文尽力重复了两次可以省略第二次
没有上下文不知道this指代什么
try and可以作固定搭配解释尽力做某事
sort可做整理意思
英语的一些固定搭配和词组
A
a (large) number of 许多
a bit 一点儿
a block of 一块
a bottle of 一瓶
a few 许多
a good/great deal of 大量(的);非常多(的)
a great/good many 很多的, 非常多的
a group of 一群,一组
a little 许多
a lot of/lots of 许多
a pair of 一双,一对
a piece of 一片(张,块)
a pile of 一堆
a place of interest 名胜
a set of 一套
a sort of 一种
a type of 一种类型的
a waste of 白费; 浪费
above all 首先;首要
according to 根据…
act as 充当;作;起……的作用
add up to 加起来是
add… to 把…..加到……上
admit doing sth 承认做过某事
advise doing sth 建议做某事
advise sb. against doing sth 建议(劝)某人不要做某事
advise sb not to do sth 建议(劝)某人不要做某事
advise sb to do sth 建议某人做某事
afford to do 有经济条件做某事
after a (short) while 不久以后
after all 毕竟;终究
after graduation 毕业以后
again and again 反复地;再三地
agree on 商定;决定;达成共识
agree to do sth 同意做某事
agree to sth 同意(计划或建议)
agree with sb/what sb does 同意某人的意见
all along 一直,始终
all day and all night 整日整夜
all kinds of 各种各样的
all night 整夜
all of a sudden 突然,冷不防
all one’s life 终生,一辈子
all over 到处,遍及…,浑身,结束
all over the country 遍及全国
all right 好吧,行吧,病好了
all round 周围,遍及四周
all sorts of 各种各样的
all the best 万事如意
all the same 一样,照样,完全一样
all the year round 一年到头
all through 自始至终
allow into 允许进入
allow doing 允许做某事
allow sb to do 允许某人做某事
and so on 等等
answer for 对……负责
apply for 申请…
arrive at /in 到达某地
as a matter of fact 事实上;其实
as a result(of) 结果
as if/though 好象;好似
as many/much as 多达……
as soon as 一……就……
as usual 象往常一样,照例
as well 也;有
as……as 像;如同
as/so far as 一直到… (程度)
ask sb to do sth 要求某人做某事
ask…for 询问;向……要
at (the) most 至多
at (the)least 至少
at a high price 以高价……
at a time 每次;一次
at all 全然,究竟,到底
at breakfast 早餐时;正吃早饭
at first hand 第一手地,直接地
at first 起先;开端
at hand 在手边,在近处
at home and abroad 国内外
at home 在家里
at night 在夜晚,在夜里
at noon 在中午
at once 立刻,马上
at one time 以前;曾经
at present 现在;目前
at sea 在海上
at someone’s hands出自某人之手,因为某人
at the age of 在……岁时
at the beginning of 在……的开始
at the end of 最后;尽头
at the foot of 在….的脚下
at the latest 最迟;至迟
at the mercy of 在……支配下
at the same time 同时
at the school gate / at the gate of the school 在学校门口
at the time of 在……的时候
at the top of one’s voice 高声地喊叫
at work 再工作,在运转,在起作用
太多了,装不下,给个邮箱吧