如何:在编辑器中打印代码。
由于每次调用程序时的时间值是不同的,因此对于不同的调用,代码打印的值不同。
Because the value of time is different each time the program is invoked, the code prints different values for separate invocations.
最后一些代码只是打印生成的XML文档。
The final bit of code just prints out the resulting XML document.
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.
好的,我想让你们看就是我运行过后,打印出来的结果,我们再回头看一下这段代码,这就是归并排序,输入一个列表。
> So for anything that's not printf, you have to write out code?
>,对于不是打印输出的,你需要写出代码吗?
Ah ha, it goes into that accept portion, prints out a message, and goes back around the while loop to say try again. And it's going to keep doing this until I give it something that does serve as a float.
他会说输入一个浮点数,啊哈,它就到了那段处理代码,打印出消息,然后回到while循环让我们再输一次,它会持续这么做直到它接受到一个浮点数。
应用推荐