1%10 So if you actually do in a program 11 percent 10, 1 what you'll get back is 1 because that is in fact the remainder of that arithmetic operation.
如果在编程里就是,返回,因为1是这个计算式的余数。
How do we take a complex program, again, divide and conquer, I feel like a 1-trick pony, I keep repeating the same thing over and over again.
同样的先分解再逐个击破,我就像只会一个把戏的小马,我不断重复相同的事情。
I'm then printing bracket one, bracket two, bracket three, bracket dot, dot, dot up until the total number of arguments, 1 whatever that may be, and it's going to be at least one because the program always has a name.
然后我打印,括号等等等,知道打印完所有的参数,不管那个最大值可能是什么,它将至少为,因为程序总是有一个名字。
In that year, we were early on in terms of diversifying the portfolio -we'd only been working on that program for two years -and even so,the negative return was less than 1%, so it was a modest negative return.
在那一年,我们还处于投资组合多元化的初期,刚刚开始2年,即便如此,股灾时我们的亏损小于1%,这只是一个轻微的亏损
Now just to get used to the conventions, 0 because this is the program you'll use not for problems at 0 but for 1 to start writing programs, notice at the top in this window just reminds you what you're working on.
我们要入乡随俗,习惯这样的界面,因为这是你们将要用到的程序,不是为习题集0,而是0,而是为习题集1开始写程序的,注意窗口顶部,这是用来提醒你,你工作在何种环境。
Why 1? It's arbitrary, but it's anything other than zero so I just exit because something went wrong and this program is just going to bail.
为什么是1?这是任意的,但它是非零的,因为出错了,我退出程序,然后这个程序就释放了。
If you want to get some input from the user, my God I don't want to have to program it to low level zero and 1 just to get keys from the keyboard; please let there have been someone who does that for me and indeed there are an increasingly sophisticated options that you can pull off the shelf.
如果你想获得一些用户的输入数据,我的上帝,我可不希望在键盘上敲入0,1的低水平方式来编程;,希望有个人能帮我做这件事吧,但是现有的选择,也变得日益复杂了。
So, in this program when we call this version of swap 1 and 2 do not end up here, right?
所以,在这个程序中,当我们调用这个swap版本1,和版本2,不是在这里结束,对不?
应用推荐