And so when I run this program, nothing all that interesting happens.
所以当我运行这个程序,没有什么会发生。
This code does swap the two values, A and B. However, when I run this program, something happens.
这个代码没有交换那两个值,A和B,但是,当我运行这个程序时,有些事情发生了。
And the obvious question I could start with is, and suppose I ask you, how long does the algorithm implemented by this program take to run?
我开始这个话题的第一个问题是,假设我问你,由这个算法实现的程序大概,要运行多久才能给出答案?
You know, you are the only person on this show who during the short answer segment has ever referred anyone to a program they can run on the internet.
要知道,本节目开播以来,你是唯一,在速答环节不授人以鱼,而是授之以渔的嘉宾。
This is a very important mission and so there is a computer program named Hal that helps run the ship and takes a lot of the burdens off of the part of the human astronauts who are on the ship.
这是一项非常重要的任务,因此,一个被命名为哈尔的计算机程序,被安排协助飞船的运行,减轻飞船上,人类宇航员的负担
But on the Mac, I'm gonna run this program called Terminal.
在Mac上运行一个Terminal程序。
So based on initial impressions, what does this program do when you run in it? Yeah?
所以根据初步的印象,如果你们运行这个程序,它会做什么?,啊?
So this program, if you run it based on intuition or little cheat sheets in front of you, what is this program ultimately going to do for me?
所以这个程序,如果你按照你的直觉,或你们面前的备忘单来执行它,这个程序最终会为我做什么?
So with the fact that I'm now just back at my prompt is a good thing so now GCC hello c if I type this command GCC hello.c, this is gonna run this program that Apple wrote in this case GCC or someone else wrote called GCC.
也就是说我们现在安全返回,说明一切正常,现在我输入这条命令:,这代表运行hello,c这个程序,是由“Apple“或其他人编写的,名为。
f2c So I'm going to go ahead and run make on f2c, which is the name I gave to this particular program.
所以我将继续来编译,这是我给这个程序取的名字。
Because I know this program was saved by default into my current folder, my current directory, so dot slash means run the program called a.out that's right here in my current directory not in, like, a out my applications folder or somewhere else.
程序默认保存在,当前目录下的文件夹,/意味着运行这个名为“a,out“的文件,是我当前目录下的文件,而不是应用程序文件夹或其他别的地方的。
应用推荐