OK. So if we have variables, one of the questions we can ask is, what's the type of the variable.
好,如果我们有了一个变量,我们要问的问题之一就是,这个变量的类型是什么?
I'm going to define a class, and in particular, what I'm going to do, is walk through what that says.
我们碰到了一个问题,这个问题就是,我们想要建立,一个抽象数据类型。
We don't have to just stick with carbon, we can think about describing other types of atoms as well using this hybridization.
我们不用局限于碳,我们可以考虑利用杂化轨道,描述其它类型的原子。
int So, primitive type besides those three types, we have ints which are just integers which are similarly 32 bits.
除了这三种类型外,还有一种最原始的数据类型,32比特整数。
Both of these are mischievous, oppositional magazines but with very different styles and attitudes.
两本都是杰出的处在对立面的杂志,但是它们的类型和看法却截然不同。
The question of whether discriminant conditioning has been used with babies to explore what sort of concepts they have.
这个问题是,在探究婴儿拥有什么类型的概念时,是否对婴儿应用了判别式条件作用
What are the qualities necessary for sound statesmanship? How does statecraft ? differ from other kinds of activities?
什么样的特质是正直政治家所应具备的风范,权术又如何,独善于其它类型的活动呢?
Perhaps that's what it's like when somebody's in a coma, or perhaps at least certain types of comas.
也许昏迷中的人也是一样,至少某种类型的昏迷。
Because it's working to defend us against many different kinds of potential assaults, the immune system has a diverse repertoire of responses that it uses in the face of these assaults.
免疫系统的工作就是抵御,不同种类的潜在威胁,免疫系统具备类型众多的免疫反应类型,以应对各种威胁
We need to know not only what are the primitives, but how do we make things meaningful in that language.
我们不仅需要知道什么是基本类型,还要知道我们在那种语言中,怎样使其变得有意义。
And here, I'm going to suggest we've seen numbers, we've seen strings, and I'm going to add Booleans here as well.
我要提醒下大家我们学习过数字数据了,学习过字符串了,今天还要学习布尔类型,这是当我们谈到条件的时候。
First of all, having read in that value, I can check to see, is it of the right type?
首先,读一下这个值,我们可以来检查看看是不是正确的类型?
Because I might have written some code in which I'm expecting that integer particular variable to have an integer value.
因为我可能写了一些代码,来把一些,变量的类型,指定为。
s1 I have a variable called s1 and it's char * of type char * so here we go.
我有一个变量,它的类型是。
And the only thing that's differing is the name of the type and the name of the variable I'm using.
其中唯一的区别是数据类型的名字,和我使用的变量名字。
And so, Watson claimed he could create anybody in any way simply by treating them in a certain fashion.
因此华生断言,他只需通过一定的方式,便能将婴儿培养成各种类型的人。
It's also important, once we start talking about molecules, to have a way to represent them, and also to be able to look at a shorthand notation for a certain molecule and understand what the bond is.
还有很重要一点是,一旦我们开始讨论分子,我们需要有一种表示它们的方法,而且能够从中看出,某些分子的简化符号,并得知键的类型。
And then we're going to try a demo to see if we can convince ourselves that the kind of calculations we make work out perfectly, and we'll do a test up here about half way through class.
然后我们将会尝试演示去看看,是否可以确信我们能够很好的,做出这个类型的计算,我们将在课程中做一个测试。
But if it is not, it's going to print out a message here saying, you screwed up, somewhat politely, and it's going to go back around. So it'll just cycle until I get something of the right type.
但是输入不是浮点数的话,我这里就会显示一个消息说,你搞砸了,该稍微有点礼貌吧?,然后我们继续执行循环,一直到得到正确类型的输入。
And we're going to start with one that you many of you, have already bumped into perhaps by accident, which are lists.
曾经遇到过的,可能是偶然遇到的类型来开始,就是数组,数组和字符串类型。
So if you think about any one of these carbon-carbon bonds, what type of a bond would you expect that to be?
如果你们考虑任何一个碳碳键,它是什么类型的?
OK, but nonetheless, I want to stress we have both a value, yeah, and a type.
好,但是尽管如此,我想要强调我们有了一个值,和一种类型。
It says, with six primitives, I can rule the world. With six primitives, I can program anything.
它说,用六个基本类型,我可以规定整个世界,用六个数字,我可以编写任何程序。
What does it do? It has height, it says, I've got two names of things: the request message and the error message.
那它是用来干嘛的呢?,它声明了包含两个对象:,要求输入的信息和输入类型错误信息。
I went from this description, it gives me some information. I need to have a particular type.
我从这些描述出发,它给了我一些信息,我需要一些特定类型的数据。
By becoming a poet for all sorts and kinds, Frost intends, as he says, to arrive "where I can stand on my legs as a poet and nothing else..."
通过成为所有类型的人的诗人,他想像他说的,“在他站立的地方都被尊称为诗人而不是其他“
So the study of regime politics is in part a study of the distinctive national character types that constitutes a citizen body.
所以政体政治研究就如同,独特的民族性格类型研究,那组成了一个公民主体。
You'll learn a lot more about this if you take organic chemistry, but, In fact, you can then go on and make a bunch of other different kinds of very interesting molecules.
如果你选了有机化学课,你会对它有更多的了解,但是,实际上,你可以继续制造出一堆,其它不同类型的有意思的分子。
All right. So hopefully we're pretty comfortable naming any type of wave function using the chemist terminology.
好了,希望我们都可以,接受这种,用化学术语来命名任何类型的波函数了。
And if you think about it, associated with each - one of those data types is a set of functions it's intended to apply to.
你会发现每个类型都有,与之对应的一个集合的操作,有的时候这些操作,有的时候某个操作可以,应用于多种数据类型。
应用推荐