F Then I'm going to print a capital F just % 1f C to be aesthetically interesting equals another %.1fc.
然后我将打印大写字母,使其比较美观的,等于另一个。
So what I'm going to do, well, let's get rid of this print statement for now.
所以我想要做的,好吧,让我们先省去这个打印声明。
You should be able to maybe print out a blank copy of those notes from the website not for memorizing them, but now just understanding how the photoelectric effect works.
你们应该可以从网站上打印一份,这些笔记中的空白的纸张,不仅仅是为了记忆,而且现在要理解,光电效应是如何工作的。
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.
让我们继续来介绍其他几个功能,以便我们最终能开始写程序,那样可以打印图表或与用户交互,打游戏之类的。
Were you guys surprised by anything that you found when you actually printed out the final details?
当你们把最后的结论打印出来时,你们有没有对自己的发现感到惊讶
Actually all of these early drafts -- these notes, these outlines for this tragedy that actually never seems to have gotten written - are included in the Tyco packet.
其实这些早先的草稿--这些为这部从没写成的,悲剧而做的的笔记,提纲,-都在打印的阅读材料里。
I'm then printing bracket one, bracket two, bracket three, bracket dot, dot, dot up until the total number of arguments, 1 whatever that may be, and it's going to be at least one because the program always has a name.
然后我打印,括号等等等,知道打印完所有的参数,不管那个最大值可能是什么,它将至少为,因为程序总是有一个名字。
And the third thing I need to decide is how do I combine? You know, point out to you in the binary search case, combination was trivial. The answer to the final search was just the answer all the way up.
第三个问题是我需要决定如何进行合并?,就你们所知的,在二分查找中所打印出来的,合并的过程是非常简单的,最后查询的结果,就是一路上来所以的结果。
So the end result, because someone wrote this function years ago is that printf takes this thing, takes this thing, David plops David inside the middle of that formatted string and then renders the whole result.
基于这是某人多年以前写的程序,最终的结果是打印出这个,这个,在格式化字符串中间的,然后返回结果。
I don't have to go read what it printed out in the screen. This has returned a value that I can use. Because I could do a test to say, is this a return value? If it's not, I'll do something else with it. So the binding is still there, it simply doesn't print it out.
我不想读到屏幕中打印出来的这行字,程序返回过一个我能够使用的值,因为我可以做个小测试,来说明这是否是返回的值,如果不是,我可以做一些其它的事,而这个绑定依然在这儿,没有打印任何东西。
Among your printouts today, even though I generally won't bother printing slides since they're fairly minimalist, we will typically print source codes.
在你们打印出来的所有资料中,我最不屑于打印这些幻灯片了,它们都相当抽象,我一般会打印源代码。
But what you would have seen is the program just doing this, printing out to the screen.
但是你看到的只是程序,打印字符串到屏幕上。
I'm going to print here the list if we go into it, and print of the when we're done and then just return that.
注意接下我来我要做的事,运行到这里时会打印列表,并且当处理完成后会打印返回的列表。
I'm first printing the zero argument which I said is the name of the program itself.
我先打印参数,这是那个程序本身的名字。
cmp My handout's wrong, which I discovered this morning after I printed them all out.
还有,我的课堂手册有错误,我上午打印完才发现有错误。
I'm actually just going to do something simple first, print the arguments to this function.
我实际上将要先做点简单的东西,打印函数的参数。
So among your printouts are a couple of files one called condition1.c. I'm going to change over to my terminal window.
在你们的打印输出中有几个文件,其中一个叫做condition1,c,我将,改变我的终端窗口。
I then insist, okay, swap, and then I print out their values again.
我再强调,好的,交换好了,然后我再打印出,它们的值。
Now that may interest you at the moment, or what you may want to do is to get a printout of the whole day after that.
是不是很吸引人,你可能会想要,把接下来这一整天的结果打印出来
And what's in this output are all the C files that we happened to have printouts of for this particular week.
全部都是一些为这周准备的打印资料,都是一些C文件。
But it's going to keep going.
并打印出所有的答案。
Then when you're done you print the page, and we have a special instruction for that in just a moment, and then you'll have what you need for the concept sheets.
当你完成的时候,请把这页打印出来,我们马上会对此做出详细说明,这样你就得到了写观点报告需要的材料
The compiler is going to ignore all of this so-called "pretty printing" -- all of this sort of indentation, -- all of this white space -- that's really for the human's benefits, both yours, your colleagues, the teaching staff, and the like.
编译器会忽略所有的叫做,“优美打印“--所有的这类缩进,所有的这些空格-,只是为了我们的利益,也是你的,你的同事,教员的和其他人的利益。
Pulling this lever or pushing the button would actually rotate the paper enough so that you'd be on a new line and it would also move the little imprinting head that prints the letters of the alphabet and such all the way to the left.
拉杆或按下按钮会让纸翻一下,这样你就能在新的一行上打字了,同时移动打印字母的,压印头,这样也能移到最左边。
OK, what I would like you to see is I've been printing out, as I went along, actually let's back up slightly and look at the code. There's merge sort.
好的,我想让你们看就是我运行过后,打印出来的结果,我们再回头看一下这段代码,这就是归并排序,输入一个列表。
No new line just 'cause I made an aesthetic call that this looks kinda nice if the prompt stays on the same line.
基于美学等原因,我们就不换行了,让将要打印出的东西跟在其后。
A progress bar is not supposed to print one hundred lines just to update its status; generally we like to see a little animation.
一个进度条不应该是打印100行,只是更新它的状态,一般地,我们,想看到一点生机。
Let's do a little Copy Paste down here so I can print out its size.
让我再做个复制粘贴,所以我能打印它的大小。
I print out -- and this is only wrapping - because of the big font -- I print out, "I demand that you give me a positive integer."
我打印出来--这个字符相互覆盖了,因为用的是大字体-,我打印:“我需要你给我一个正整数“
OK. So if I look at this code, first of all I'm calling search, it just has one call, so looks like search is constant, except I don't know what happens inside of b search. So I've got to look at b search.
首先调用一下搜索,就一步调用,看起来搜索是固定的,除非我不知道二分搜索的原理,那我们来看看二分搜索吧,所以让我们看看,第一行打印出来的内容。
应用推荐