So let me go ahead and pull up the staff solution 15 to the standard edition for a moment, the game is called 15, it takes one command line argument which is the dimensions of the board 3 by 3, 4 by 4, I'll do it 4 by 4.
下面我们继续,等一会儿,我会给出标准的解答,这个游戏叫做,有一个命令行参数,标识其大小是,3阶还是4阶,我选择4阶。
include stdio h Well, remember this line; include standard IO dot H.
好的,请记住这一行。
You want to, for any given expected return, you want to minimize the standard deviation, so it's the left-most line and that means that everyone will be holding the same portfolio.
你希望,在期望收益固定的情况下,你肯定希望将标准差最小化,而这条线是最左边的线,这就意味着所有人,都愿意持有这样的投资组合。
include stdio h The next line of code says include standard io.h which just as a little sanity check contains among other things, printf.
接着的一行代码写着,这个库文件包含一些我们常用的函数,譬如,printf函数。
The standard library, that first line of code, it's not strictly necessary but any time you use a function, a tool that someone else wrote that lives in that so called library, you do need that include line as we'll see.
标准库函数--第一行代码,严格来说,不是每次都要写的,但是一旦你调用某个别人写,的函数,而这个函数又恰巧位于标准库里面,你就要像我们看到的这样,把它include进去。
I mean, you'll play with it in great-- with great delight this semester, you will see that backslash N is the standard in any text file for creating what we know as new line characters.
我是指,这学期,你们会很高兴-,和它打交道,同时你们也会看到,在任何文本文件里,反斜杠n已经是,换行的代名词了。
应用推荐