事实上,上面提供的版本在搞欺骗;它假设所读入的行中没有空字节。
In fact, the provided version cheats; it assumes there will be no null bytes in the lines it reads.
它读入WSDL文档,确定可能的操作,然后显示一个包含操作列表的向导页面,必须从中选择一个操作(如图1所示)。
It does so by reading the WSDL to determine the available operations and presenting a wizard page that includes a list of these operations, from which one must be chosen (see Figure 1).
从整体的角度来看,这一行的意图非常明显,给出了充分的信息告诉你它需要读入第一个整数值。
At a holistic level, the intent of the line is reasonably clear, given that everything you can see suggests that it must be reading the first integer value.
Right, I'm going to read in the values of the number of heads and the number of legs.
它看上去和Barnyard完全一样,现在我要读入头数和腿数。
First of all, two parameters. It's OK. All it says is, when I call this, I need to pass in two parameters for this to work. All right? Now, if I want to use that, I'm going to use a second piece of code here, called Barnyard. I'm going Barnyard to read in a couple of values, convert them into integers, and then I'm going to use solve to get a solution out.
注意我得到了什么,第一,两个参数,它的意思就是我调用这个函数,我得给它输入两个参数,明白了吗?,现在如果我要使用它我得用,这里的第二段代码,也叫,我将读入一组值,将它们转化为整型,然后我会用solve得到一个解决方案。
应用推荐