Would it be better for people to be able to see everyone and maybe not feel like this is a secure environment in which they can share their interests and what they thought and what they care about?
我们可以选择,将用户信息全部公开,但在这样一个网络环境下,分享自己的所见所闻,所感所想,总会让人觉得不可靠?
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.
现在,如果我要用户输入一个字符串,一会儿之后我要用户输入另一个字符串,他们最终是在,不同的内存地址中。
Given that we have the largest Internet population, it's likely that we will be able to encounter new problems before American people encounter.
中国的互联网用户是最多的,中国很有可能,将在美国人之前遇到新的问题。
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.
在这个前提下,去寻求整个社会,以及所有用户的长远利益的最大化,这十分重要,我们寻求长期利益,而非眼前利益。
So, ask yourself frankly especially when it comes to designing your own tools and your own programs whether it's for real users to use, whether it's for your research group to use in some other field, you know, where do you even begin?
坦白讲,问一问你们自己,当你设计一个工具,一个程序时,它是否是为真实用户使用的,还是为在其他领域的,研究团队使用的,你们懂的,你从哪里开始?
We've been using strings thus far to get input from user and store it in variables.
迄今为止,我们用字符串来接受用户的输入,然后存储在变量里。
It's your user name that appears in these messages.
你们的用户名显示在这些消息当中。
If you want to get some input from the user, my God I don't want to have to program it to low level zero and 1 just to get keys from the keyboard; please let there have been someone who does that for me and indeed there are an increasingly sophisticated options that you can pull off the shelf.
如果你想获得一些用户的输入数据,我的上帝,我可不希望在键盘上敲入0,1的低水平方式来编程;,希望有个人能帮我做这件事吧,但是现有的选择,也变得日益复杂了。
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.
对此有些人可能不大了解,我们以学校为标准将用户分组,只有在同一所学校的学生,才能够相互浏览,个人资料和联系方式。
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的函数库中,它的唯一目的是,向用户询问一个浮点数的值,然后返回它。
This is copy2.c. At the very beginning I, again, demand say something and then I declare s1 to be a string, aka char *, and I store in s1 the string the user types in.
这是copy2。c,在开头打印一句话,然后声明s1是一个字符串,也叫做char,*,然后把用户输入的字符串存储在s1中。
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中存储的是用户输入的字符串的首地址,这样第一个字节存储在这块,新的堆的地方,这个是唯一的修正。
Why is this "3" running right into my Malan user name there?
为什么这个“3“显示在我的Malan用户名前面?
Right. Because all of us have probably bought something facebook on Amazon.com or the like, all of us have probably logged into Facebook.com, passing your credit card information over the Internet, passing your username and password over the Internet, and as you probably know, as a casual user, https denotes secure.
对的,因为我们都可能在亚马逊之类的网站上买过东西,我们都可能上过,在网络上传送你的信用卡信息,在网络上传送你的用户名和密码,你可能知道,作为一个非正式的用户,https保护安全。
I mean what if you're running so many things, what if the user has copied and pasted their thesis and just pasted it at the blinking prompt such that you're now out of memory because your computer is somewhat limited in memory so get string cannot possibly return all those characters or fit all of those characters in memory and return to you the address of the first.
如果你运行了很多程序,假使用户复制粘贴了他们的论文,只是粘贴在光标提示符那里,这样就出现了内存不足,因为你们的计算机的内存是有限的,所以GetString不可能返回所有的字符,或者保存这些字符到内存中,并且返回第一个字符的地址。
应用推荐