ArgC How many words were typed at the prompt, by default, Arg C, should always be at least one.
提示符那里默认要输入多少单词,至少需要一个单词。
And sometimes, you know, not knowing a word, it helps you learn it better
有时候,不知道一个单词,却能够帮助你更好地学习它,
Is it is just like a string of words or-- >> What does-- what does what mean? A string?
是字符串?单词?还是?,>>你刚刚说什么?,一个字符串?
Rather, the pauses are inserted by your mind as you already know where one word begins and another one ends.
相反,停顿只是由你的心理活动插入的,因为你已经知道了一个单词的开始,与另一个单词的结束在什么地方
And right before the last slide, what does it look like in the lab, what we have been able to achieve is a system that performs about 15 words per minute.
在看最后一张幻灯片之前,我们了解了实验室要做的事情,我们能够建立一个系统,每分钟输出15个单词。
And I'll just say a word quickly, that don't underestimate the influence here of an ideology beneath this.
我要简单阐述一个单词,不要小看了这种现象下的,意识形态对此的影响
What constitutes an accent when you-- what is an accent in a given English word?
怎样确定一个重音呢?当你-,英文单词中的重音是什么?
If an impure object--and you will see here these overlapping pairs, if you can imagine the lower pair sort of being plunked down on top of this pair, that will give you an idea of what we're trying to convey with this image.
如果一个不纯洁的东西--看这里,这些重叠的单词,假设这两个单词,突然跑到这两个的上面,这样你就会对我们这个图示想传达的内容有个概念。
The Odyssey begins even more strikingly with the word andra, the accusative of anar,the accusative case of a man, and he says,sing to me goddess about that man, that man of many devices,that clever man Odysseus.
奥德赛》有个更引人注目的开头,以单词andra开篇,anar的宾格形式,一个人的宾格形式,他说,"女神向我歌颂那个男人,那个足智多谋的男人,奥德修斯"
And then we hand you 140,000 English words in the form of a big text file much like our aspiring pre-med students in recent months, and we challenge you to implement the fastest spellchecker possible.
然后我给你一个包含1万4千单词的超大文本,就跟前段时间那位,有抱负的医学预科班的学生一样,我想让你在最短时间内实现拼音检查。
D-A-V-I-D Well, if I've got a five-letter word like D-A-V-I-D, well, that's like five bytes and yet we only have the ability thus far in this class to return one thing at a time I can't return five bytes to you, but wait a minute, those bytes by nature of a computer are just stored in RAM.
好的,如果有5个字母的单词,如,那是5个字节,我们只能返回一个东西,而不能返回5个字节,等一下,这些字节被计算机本能地,存储在内存中。
nano Well, anytime you run a program at the command line, like nano, you've almost always been putting one or more words nano hello c GCC hello c after that program's name; nano hello dot C, GCC hello dot C, and any number of MKDIR for make directory, and then peace at one or similar.
好的,任何时候在命令行中运行一个程序,就像,你几乎总是用1个或多个单词,在程序名的后面,许多的建立一个新的子目录,然后恢复平静。
Now that--If the only language you've ever heard is English, that's going to seem like a really weird example of a problem because you're listening to me speak and in between each of my words you're hearing a pause.
如果你只接触过英语,那么刚才的问题就看上去非常奇怪了,因为你在听我讲话,而你会在我所说的单词之间听到一个停顿
s2 So, I'm passing in the first character in s2, I'm making it uppercase and then I'm putting it back so casually speaking this is just capitalizing the first letter of whatever word the user typed in to s2.
那么,我把第一个字符传递给,我把它转换成大写的,然后存下来,简单说,这就是把用户输入s2中的单词,的第一个字母转换成大写的。
It's being handed a picture that looks like this, and inside each baz of these squares is a word foo and bar and baz as well as the program's name.
它传递一个像这样的图画,在每个,长方形中是一个单词foo和bar和,还有程序的名字。
Another part of the problem of learning language is you have to figure out what the boundaries are between the words.
学习语言的另一个问题是,你必须得确定单词之间的界线是什么
So all of these programs or commands that we've been using thus far for the piece set in class, take what we call command line arguments, they are the zero or more words that follow the program's name.
所有我们一直在课堂上使用的,这些程序或者命令,携带着命令行参数,它们是跟在,程序名的后面的一个或多个单词。
When you've been typing in words to the keyboard like your name or any word that you're trying to provide to the user, a string really looks like this.
当你们通过键盘键入单词,比如你的名字,或者你想提供给用户的任何单词,一个字符串实际上看起来就是这样。
What you might do, for instance, is be sitting at a computer screen and you'll be given incomplete words to fill out "hos-" like "hos-" and you have to fill out this word.
例如,你可以,坐在一个电脑显示器前,你要补充一连串不完整的单词,例如补充完整。
So it does that for us so that you can get away with just knowing the address of the first byte and it will make sure that you know when to stop by including the special value so, in fact, get the string if you type in a three-letter word, we allocate four bytes no matter what because we need an additional byte 0 for this special sentinel value back slash zero at the very end.
它为我们做了这些事情,这样我们就可以,通过第一个字节的地址,它还可以通过包含一个特殊的值,来保证在哪里停止,如果你输入了一个三个字母的单词,就可以获得那个字符串,不管怎样,我们分配四个字节,因为我们在末端需要一个额外的字节,来保存这个特殊的标志值--反斜杠。
If you instead use GetString, same thing: blinking cursor, the function is just going to wait for the user to type a word, a sentence or whatever, and then hit Enter.
如果你用GetSring来代替它,同样的:闪烁光标,那个函数只是等待用户来,输入一个单词,一个句子什么的,然后敲回车。
应用推荐