WordSteps
‹
Есть вопросы?
закрыть

第2讲 | MIT 6.00 计算机科学与编程导论,2008年秋季

00:00:00
The following content is provided under a Creative
00:00:02
Commons license.
00:00:03
Your support will help MIT OpenCourseware continue to
00:00:06
offer high-quality educational resources for free.
00:00:10
To make a donation, or view additional materials from
00:00:13
hundreds of MIT courses, visit MIT OpenCourseware,
00:00:17
at ocw.mit.edu.
00:00:19
PROFESSOR JIM ERICSON: OK, to work.
00:00:24
A word of warning: fasten your seat belts.
00:00:27
Or, another way of saying it is, I'm going to open up the
00:00:29
fire hose a little bit today.
00:00:31
Last lecture, you might have thought this was a SHASS class,
00:00:34
it's not like a philosophy class, and it was important to
00:00:36
set the stage for what we're going to talk about, but
00:00:38
we talked about very high level things.
00:00:41
The notion of recipes, the notion of computation, why
00:00:43
you want to do this, what you're going to learn.
00:00:45
Today we're going to dive into the nitty-gritty, the nuts and
00:00:48
bolts of the basics of computation, and in particular,
00:00:51
what I'm going to do today is, I'm going to talk about
00:00:53
operators and operands, which we did a little bit real last
00:00:56
time, in particular how to create expressions, I'm going
00:00:59
to talk about statements as the key building blocks for writing
00:01:02
code, and I'm going to introduce simple sets of
00:01:06
programs, in particular I'm going to talk about branching,
00:01:09
conditionals, and iteration.
00:01:11
So, a lot to do.
00:01:12
OK?
00:01:13
So, let me jump straight to it.
00:01:16
At the end of last lecture, we started introducing some of
00:01:18
the pieces you want to do.
00:01:19
And I want to remind you of our goal.
00:01:20
We're trying to describe processes.
00:01:22
We want to have things that deduce new kinds
00:01:24
of information.
00:01:25
So we want to write programs to do that.
00:01:28
If we're going to write programs, we need at least
00:01:29
two things: we need some representation for
00:01:32
fundamental data.
00:01:34
And we saw last time two examples of that.
00:01:37
And the second thing we're going to need, is we're going
00:01:39
to need a way to give instructions to the computer
00:01:43
to manipulate that data.
00:01:44
We need to give it a description of the recipe.
00:01:47
In terms of primitive data, what we saw were
00:01:53
two kinds: Right?
00:01:56
Numbers and strings.
00:02:00
A little later on in the lecture we're going to
00:02:04
introduce a third kind of value, but what we're going to
00:02:08
see throughout the term is, no matter how complex a data
показать еще
свой перевод
Работаем...
нет перевода