So I put my head down and focused on operation technology, focused on the user's experience, and I delivered.
我选择脚踏实地工作,专注于公司的运营,专注于提升用户体验,这一切我都做到了。
Let me make sure that the user annotations are disabled this time and let's take a little look at this one here.
我先把用户信息注释去掉,然后开始播放。
First of all, he wanted to imbed in his upcoming high potentials the user application of really advanced investment theory.
首先,他希望,即将到来的潜力人才,学会运用,先进的投资理论。
The only thing I've done in this part of the program, now I'm going to go and read the code, is I've gotten the user to input a bunch of data.
现在我去读读这里的代码,是我会让用户输入一些数据,然后根据用户输入的数据。
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.
当用户输入请求之后,将会对此请求进行各种语意分析,行为分析,并与用户进行智能交互,然后进行大量计算,来定位用户的真正需求。
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.
对此有些人可能不大了解,我们以学校为标准将用户分组,只有在同一所学校的学生,才能够相互浏览,个人资料和联系方式。
And we will show you exactly how you can write programs that actually interact with the user in that way.
我们将给大家示范如何,书写代码以及跟用户交互。
I mean buy could actually be a negative indicator that this is probably not of interest to the user.
我的意思是购物可能是一个负面暗示,暗示用户对这些不是很有兴趣。
So let's go ahead and introduce a couple other capabilities so that we can finally start writing programs that maybe print out charts or interact with the user, play games, or the like.
让我们继续来介绍其他几个功能,以便我们最终能开始写程序,那样可以打印图表或与用户交互,打游戏之类的。
Now, if I've asked the user for a string and then a moment later I ask the user for another string, well, they're going to end up in different locations in memory just by nature of get string.
现在,如果我要用户输入一个字符串,一会儿之后我要用户输入另一个字符串,他们最终是在,不同的内存地址中。
I can't rely on the user. I want to make sure I get a float in it, so how do I do that?
我想确保这儿我得到的是一个浮点数,我该怎么做呢?
It is my place, as a programmer, to write information to the user.
这个规范到底用来干什么的呢?,这是我的空间。
It was a complete waste of time, unless the goal in life was simply to pester the user for some input.
刚才的时间就完全浪费了,除非那个唯一的目的,是简单地纠缠用户索要一些输入。
Otherwise, what was the point of getting a string from the user if I'm not handed the result to actually do something interesting with.
否则的话,它不把值带给我们,我们就做不了想做的事情,那我们还要它有什么用呢?
You have to jump through hoops just to ask the user for a piece of input which should be really the thing a language prioritizes.
你要百依百顺才能从用户那里得到一个输入,这个输入可能只是一个,语言优先级。
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,因为用户输入了,等一下,用这个干吗?
But when you start writing programs, especially when we get to web-based stuff where you want -- to check the user's input -- is it valid, is it an email address, -- and all these different scenarios -- it's actually often useful to be able to just enumerate them or rattle them off using this switching construct instead.
但是当你看是写程序时,特别是当我们,使用基于网络的东西,你想要,检查用户的输入-,它是合法的吗?它是不是一个电子邮箱地址?,所有的这些场景-,实际上它常常是有用的,当你用枚举结构列举它们,或者用它来快速地来说出它们。
That goes back to that idea of sort of discipline coding. It's easy to have assumptions about what you think are going to come into the program when you writ it. If you really know what they are use them as search, but if you think there's going to be some flexibility, you want to prevent the user getting trapped in a bad spot, and exceptions as a consequence are a good thing to use.
这又回到了规范编码的想法上来了,在你写代码的时候考虑,什么会进入你的代码的思考是简单的,如果你真的知道,他们是用他们来做搜索的,而你希望有一定的灵活性,你想要阻止用户,陷入一个艰难的境地,那么异常是非常实用的。
So when you have a function called GetString, -- that means it's going to get a string from the user -- -- prompt the user for a string -- whereas printf is literally going to print it, not to paper, but to the screen.
所以当你有一个叫做GetSting的函数,它的意思是从用户那获得一个字符串-,提示用户输入一个字符串-,然而printf的确是用来打印的,不是在纸上,而是在屏幕上。
If you called get string multiple times, surely you've been able to get different strings from the user.
如果你调用GetString好几次,你可以从用户那里获得不同的字符串。
It's defined in CS50's library; its sole purpose in life is to ask the user for a floating point value and return it.
它被定义在CS50的函数库中,它的唯一目的是,向用户询问一个浮点数的值,然后返回它。
应用推荐