So I ran to the end of the road, and when I got there, I thoughtmaybe I'd run to the end of town.
VOA: standard.other
It took me seven comparisons, because I can take advantage of the fact I know I only ever have to look at the first element of each sub-list. Those are the only things I need to compare, and when I run out of one list, I just add the rest of the list in.
进行了7次对比,因为我可以利用我知道的优势:,每次只需要比较每个子列表的第一个元素,那才是我需要进行对比的内容,当一个列表的元素处理完了,只需要将另一个列表剩下的元素直接添加进去。
So now when I compile this fourth version with make math4 1 31 and then run math4, I indeed get 1.31.
所以现在我键入“make,math4“来编译第四个版本4,然后运行math4,我得到了。
And we must know what the result is supposed to be. Typically when you run an experiment, you say, and I think the answer will be x.
这样我们可以来查看代码的进程,我们还必须清楚结果应该是怎么样的,比如当你运行一个实验的时候。
And so when I run this program, nothing all that interesting happens.
所以当我运行这个程序,没有什么会发生。
Pseudo code. Now, you're all linguistic majors, pseudo means false, this sounds like code that ain't going to run, and that's not the intent of the term. When I say pseudo code, what I mean is, I'm going to write a description of the steps, but not in a particular programming language.
伪代码,基于你们都是学语言的,伪代码意味着不正确,这听起来就像是没法运行的代码,这可不是我们学这个的目的,当我说到伪代码的时候,我的意思是要对步骤进行一个描述,而不是某种特定的编程语言。
This code does swap the two values, A and B. However, when I run this program, something happens.
这个代码没有交换那两个值,A和B,但是,当我运行这个程序时,有些事情发生了。
应用推荐