"Otherwise you have the really problematic bottom line, which is that the Central Intelligence Agency is running a program that is killing significant numbers of people and there is absolutely no accountability in terms of the relevant international laws,".
VOA: standard.2009.10.27
There are absolutely going to be times where you're running a program where the programmer, say you, didn't possibly know in advanced how much RAM the program was going to need.
它们总是在,程序员运行程序的地方,你可能预先不知道那个程序,需要多少内存。
which is running a program which gets children from a young age involved in global issues,
它是一个让孩子们从年幼时就接触全球性问题的启动项目,
Personality is a little bit like a program that's running on the computer.
人格有点像在电脑上运行的程式。
I'm checking that I didn't leave my program because I didn't find an answer. Well this is a good thing, it's better than my program running forever, but it's a bad thing because I don't have it the square root of 0.25.
我对计数器要做个验证,因为我不会没得到答案就退出程序,好,这其实是个好事,因为它不会让我的程序永远跑下去,但这也是件坏事因为,我没得到0。25的平方根。
You can very quickly drive yourself nuts by sitting down, thinking, oh, I can write this program, no sweat, and then you write it and then there's a tiny little mistake here, but then there's a tiny little mistake here and here, and all of these stupid little things cascade until you try running your program, and the thing just doesn't work.
如果你只是仅仅干坐着,不费吹灰之力,凭空幻想着我可以把这个项目搞定,你会想地发疯的,也许你会写出一点东西出来,可能会有一点点错误,紧接着这或那又出现一点小错误,这些小错误一点一点地堆积了起来,直到你开始运行你整个项目,你会发现这堆东西根本就不工作。
They're running a program at the moment, which is called WaterAid.
现在他们在进行一个项目,叫做水援助组织。
So I tried running a program in this little black and white window called GCC and we'll see it today working properly that is a so called compiler.
在一个名为GCC的黑色小窗口里,运行我们的程序,然后得出想要的结果,这就是所谓的编译器。
I certainly don't want to assume they're always going to type a three-letter or a four-letter or a two-letter word I want some dynamism but that's fine because get string can get a string of any length, I can then use the string length function to just ask while the program is running how big is the string that I was handed?
当然我不能假设他总是,输入3个字符或4个字符,或2个字符的单词,我想要动态地分配,因为GetString可以获得任意长度的字符串,然后我可以使用strlen函数,来得到那个我传递的字符串,有多长?
So here is the simplest program which is perhaps an ironic statement that you can implement with this language called C. So it takes a few lines of code to actually get something up and running and as you'll recall last Friday, I didn't even get this up and running because part of the process of writing a program is to one, write it.
让我们回到这个最简单的程序,你们也许觉得啼笑皆非,这么简单的例子,用C语言写出来就可以了嘛,的确只需要几行代码,就可以让这个程序跑起来,就像上周五的那样,我之所以没让它跑起来,因为编程步骤之一,就是“写“
应用推荐