"This approach is a signal to the private space community that they can look to government partnerships, government as a user, or even government as an investment partner as they go forward."
VOA: special.2010.04.28
So, we spend a lot of time writing what's called user narratives of this user or this person.
所以我们花了很多时间写,各种用户的体验。
Turns out this user's manual, just like a typical book, has multiple sections or chapters and Chapter One is generally about programs.
结果这个用户手册,就像一个特定名册,有好多章节,第一章大概是关于程序的。
ReadFloat We'll look at it in a second. Let me sort of set the stage up for this -- suppose I want to input -- I'm sorry I want you as a user to input a floating point number.
名字叫,我们来看一会,我先来设置下情景-,假设我想输入,抱歉,我希望你们作为用户来输入一个浮点数。
In this case, to optimize for the best of the whole community and the whole user base and over the long term and that's important too, your long over short term.
在这个前提下,去寻求整个社会,以及所有用户的长远利益的最大化,这十分重要,我们寻求长期利益,而非眼前利益。
This is also the classification of user's needs in our search box.
这是根据用户需求,进行的分类。
We look at what emails you reply to if you reply in theory that suggests this user must care about whoever sent this email or the topic they are in.
我们看看哪些邮件要回复,如果你回复了,理论上来说这表明了用户一定很关心,发件人以及邮件的主题。
I mean buy could actually be a negative indicator that this is probably not of interest to the user.
我的意思是购物可能是一个负面暗示,暗示用户对这些不是很有兴趣。
Let me make sure that the user annotations are disabled this time and let's take a little look at this one here.
我先把用户信息注释去掉,然后开始播放。
In this case, I'm going to get back the answer 3 F-O-O because the user typed in F-O-O, but wait a minute, what's with this?
假若这样,我得到了答案3,因为用户输入了,等一下,用这个干吗?
We understand this kind of user intents.
了解到用户的意图之后。
For those of you who aren't familiar with this, we split up the user base by what school they go to and we make it so that people at a given school can only see the profiles and contact information of people at their school.
对此有些人可能不大了解,我们以学校为标准将用户分组,只有在同一所学校的学生,才能够相互浏览,个人资料和联系方式。
So, summarizing better, assert is something you put in to say to the user, make sure you're giving me input of this type, but I'm going to guarantee you the rest of the code works correctly. Exceptions and exception handlers are saying, here are the odd cases that I might see and here's what I'd like to do in those cases in order to try and be able to deal with them.
所以更好的总结下,断言就是你放在那里告诉用户,保证你输入的是这种类型的,但我能保证剩下的代码运行正确,异常和异常处理做的事,这里有些我能预期的异常情况,并且这里有些情况,我能尝试处理。
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.
当你们通过键盘键入单词,比如你的名字,或者你想提供给用户的任何单词,一个字符串实际上看起来就是这样。
But odds are it's not sufficient just to get it from the user, I, the human need to be handed whatever this function got from the user in some form.
如果只是从用户,我这里获取,好像有点不太准确,我们得交出,该函数从用户那里得到的一切信息。
Notice in this program I have not checked whether or not the user actually provided input.
就拿这个程序说事吧,我们根本没有检查,用户到底有没有输入。
I want to keep doing this while I am not thankful for the user's number.
我想要一直这样做,当我对用户的,数字不满意。
And this is so that they could have more possible user IDs not because they have billions and billions of users but surely people create accounts to lead accounts and they don't necessarily have to reuse numbers this way.
这样他们就能有很多的用户ID了,倒不是因为他们有成千上万的用户,而是创建账户来引导其他账户,其实他们完全没有必要以这种方式复用。
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中的单词,的第一个字母转换成大写的。
So if I type "man sleep," this is going to give me the user's manual for a program called sleep, but there's a gotcha and the problem set it makes clear, sleep notice that it says at top left sleep one.
所以如果我键入“man,sleep“,它将,给我一个叫做sleep程序的用户手册,但是这里有个参考信息,它使问题更清晰,请注意它指明在左上角。
So actually thinking about how humans interact with machines and how you can optimize your so called user interface or GUI interface is also one of the themes in this particular field.
因此考虑人与机器如何交互动,以及如何优化所谓的用户界面,或者GUI界面就是这个特殊领域的一个主题。
Odds are when this function called gets a string from the user by expecting them to manipulate their keyboard - with their fingers, I need to-- initiatively I'm gonna get back a sentence or a word or a phrase or something.
调用GetString获取的信息也有可能,是通过键盘敲进来的,东西-,它将会返回句子啊,单词啊,或词组啊等等一些信息。
So the take away is that if the user actually gives me two or three or four or whatever, this is this expression "is n less than 1" is going to evaluate to false if it's actually two or three or four or whatever.
所以先不管用户实际上给我,3,4还是其他数,这个表达式,“是否n小于1“将被评估为错误的,如果输入额是2,3,4或其它的数。
I store in s1 the address of the first byte that the user typed in and by the way that first bite happens to live in this new place called the heap and that's the only update to the story thus far.
我在s1中存储的是用户输入的字符串的首地址,这样第一个字节存储在这块,新的堆的地方,这个是唯一的修正。
So when a request is entered into this box, we do all kinds of semantic analysis, behavioral analysis, intelligent interaction with the user than massive computing and figure out what the user really wants.
当用户输入请求之后,将会对此请求进行各种语意分析,行为分析,并与用户进行智能交互,然后进行大量计算,来定位用户的真正需求。
Why is this "3" running right into my Malan user name there?
为什么这个“3“显示在我的Malan用户名前面?
I'm gonna call my file hello.c. There's a little bit GUI-- of distraction here but this is because this is not a GUI, CLI a graphical user interface, this is a CLI, command-line interface, which just means there are no windows and icons.
我先给我的文件命名为“hello,c“,你们也许会觉得有点烦,因为不是,图形用户界面,这是,命令行界面,这意味着没有窗口,没有图标。
I'm going to use the CS50 Library instead for user input I'm saying say something then I'd get a string from the user and I call time s1 and then I say, say something, s2 and then I get another string from the user and call it s2 and apparently this program's purpose in life is to tell me yes or no the user said the same thing both times.
然而我使用的是CS50库来获得用户输入,我说点什么,然后从用户那里获得一个字符串,并把它叫做s1,然后我说点什么,然后从用户那里获得一个字符串,并把它叫做2,这个程序的最终目的是,告诉我两次用户输入的是不是同样的东西。
应用推荐