printf And then I'm gonna use the same printf line after that to actually plop it into this formatted string.
我还是要用到,来把它转换成格式化字符串。
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.
基于这是某人多年以前写的程序,最终的结果是打印出这个,这个,在格式化字符串中间的,然后返回结果。
It's not necessary very well formatted but it looks pretty complex, right?
排版不是很整齐,看起来也非常复杂,不是吗?
They came formatted or blank so not such a big deal.
它们被格式化了或者是空白的这并不重要。
And so this is why in problem set 5 last year when I took photographs on campus with a compact flash card, just standard consumer media and I accidentally formatted that compact flash card, I only lost the first few kilobytes, the first few thousand bits on that compact flash card.
这也是去年的套题5中,我们在校园里面用配有,简易闪存卡的标准摄像机拍照片,我不小心格式化了这个简易闪存卡,其实我只是丢失的最开头的几千个字节的数据。
But if you avoid all of these minutia and focus really just on the idea, it looks like what was a blue say block, a so called statement, is now going to be something called printf where the F happens to stand for formatted.
但是如果你抛开所有这些繁琐的细节,把注意力集中到,它的编程思想,那么它只不过一个蓝色的say程序块,是一个声明,即所谓的printf函数,其中的f是,用于格式化输出。
Well, here is the F in printf for formatted printing.
这里printf中的f是用于格式化输出的。
应用推荐