但是我们这里要强调的是,当你写代码的时候,决定你的代码的效率的很重要的事情,就是你的设计决定。
But the things we were trying to stress were that it's an important design decision when you are coming up with a piece of code, as to what kind of efficiency your code has.
所以当你调用cs50员工写的这个,函数时。,that, the, cs50, staff, wrote。,我们要做的就是弄清楚怎样把,用户的输入,存储在像那样的单独的存储单元里面。
So when we call GetString, the function GetString What we are doing is figuring out how to get input from the user at the keyboard into individual chunks of memory like that.
当你长大的时候,你就学会了用写和读的方式(来使用计算机)。欢迎来到我们的计算机读写课程101,现在,让我们进入课程吧。
When you grow up, you learn to read and write. Welcome to Computer Literacy 101. Now let's get to work.
But the things we were trying to stress were that it's an important design decision when you are coming up with a piece of code, as to what kind of efficiency your code has.
但是我们这里要强调的是,当你写代码的时候,决定你的代码的效率的很重要的事情,就是你的设计决定。
When we start writing code, you're going to see that difference, but for now, don't worry about it, I just want to plant that idea.
当我们开始写代码的时候,你就会看到区别了,但是现在别担心,我只是想让你们初步有个印象。
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.
但是当你看是写程序时,特别是当我们,使用基于网络的东西,你想要,检查用户的输入-,它是合法的吗?它是不是一个电子邮箱地址?,所有的这些场景-,实际上它常常是有用的,当你用枚举结构列举它们,或者用它来快速地来说出它们。
应用推荐