文件的打开、关闭、读和写函数(fopen 、fclose 、fgets 、getc等等)、printf函数系列和setvbuf函数都需要它。
It is needed for the file opening, closing, reading, and writing functions (fopen , fclose , fgets , getc , and so on), for the printf family of functions, and for the setvbuf function.
但是,如果此函数只写同一个文件,那么完全不需要在探测中暴露文件名。
But there is no point in exposing this information in the probe if the function only writes to the same file.
卡西尼号远离土星环而观察到的每个信号的变化提供了一份环材料分布的侧写。这是一个距土星距离的函数,或是一个光学深度剖面。
The observed changeof each signal as Cassini moved behind the rings provided a profile ofthe distribution of ring material as a function of distance fromSaturn, or an optical depth profile.
每当对应的客户端套接字包含读、写或错误操作时,调用对应的回调函数。
Each time a corresponding client socket contains any read, write or error operations, the corresponding callback function is called.
每个通道都是一个预定义的函数,它可能是一个读通道,也可能是一个写通道。
Each channel has a predefined function and is either a read channel or a write channel.
例如:你的项目需要你写一个函数,把两个数相加,并返回和。
For example, let's say your project requires you to write a function that adds two Numbers, and returns the sum of these Numbers.
所以当你调用cs50员工写的这个,函数时。,that,the, cs50, staff, wrote。,我们要做的就是弄清楚怎样把,用户的输入,存储在像那样的单独的存储单元里面。
So when we call GetString, the function GetString What we are doing is figuring out how to get input from the user at the keyboard into individual chunks of memory like that.
FreeDB模块中有一个非常好的 ask4discurls()函数,因为如果没有它,我将不得不自己去写一个。
The WebService::FreeDB module has an ask4discurls() function that was nice, because I would have had to write it otherwise.
基于进入系统的时间,写操作具有幂等性(不管操作多少次结果都不变的性质,比如取绝对值的函数就具有幂等性)和交换性(操作顺序不影响结果,比如加法就具有交换性)。
Write operations are idempotent and commutative, based on the time they enter the system.
当然,真实的合同是以语言的形式写的而且可能会含糊的定义这个函数,不光是它的范围和领域,还可能是函数本身。
Of course, real contracts are written in a language and may not unambiguously define such a function - not its domain or range, much less the function itself.
它是别人或你自己写的,但是你可以压缩你所有的想法,或者你这个东西里面的功能叫做一个函数。
It's something that someone else wrote or maybe you wrote, but you can encapsulate all of your ideas or your functionality inside this thing called a function.
被访问的对象、被访问的属性名、访问的类型(例如读、写和删除)将被传递给回调函数,回调函数会返回是否允许访问。
This callback is given the object being accessed, the name of the property being accessed, the type of access (read, write, or delete for example) and returns whether or not to allow access.
结果:你被迫去写一些更为短小精炼的函数,这无疑是一个好的趋势。
The effect is: you're forced to write shorter methods. And that's a Good Thing.
当开发一个应用程序或者是其他的处于用户空间的程序时,开发者必须考虑其他人写的代码----操作系统,库函数,还有其他程序,等等。
When developing an application or other userspace program, the developer has to take into consideration the code written by others: the operating system, the libraries, other programs, etc.
我们的函数中的东西,我们不会让你去写皮兰德娄的荒诞剧,但是我们会教你写漂亮的代码。
We won't make you write dramas like Pirandello, but we're going to try make you at least write good code.
例如,如果要检查一个文件I/O函数,可以把正在写的文件的名称添加到函数的探测中。
For example, if you were instrumenting a file I/O function, you might add the name of the file being written to the probe for that function.
最后他将发现,他写的小应用程序代码缺少缺省的构造函数。
Eventually she will figure it out: Her code is missing the default constructor for the applet she is writing.
注意,你在使用默认构造函数时可以不用写括号(例如,没有参数的构造函数)。
Note that you can drop the parentheses when using a default constructor (i.e., one that takes no arguments).
结果是,main函数,是的,这是你写的默认函数,至少是在C语言中,当写程序的时候。
So it turns out that, main, yes, is the default function you write, at least in c, when writing a program.
下面就练习一下了,写一个函数,接收一个字符串做参数,然后倒序显示每一个字符,每行显示一个。
As an exercise, write a function that takes a string as an argument and displays the letters backward, one per line.
写两个函数似乎有点浪费,如果我们能消除第二个joiner方法,在第一个jioner方法里为separator参数声明一个默认值,那就太好了。
Having two methods seems a bit wasteful. It would be nice if we could eliminate the second joiner method and declare that the separator argument in the first joiner has a default value.
初始化final字段的写将不会与构造函数关联的冻结后面的操作一起重新排序。
Writes that initialize final fields will not be reordered with operations following the freeze associated with the constructor.
你就假设他们都工作,因为写这些内置函数的人都是很可靠的编程人员。
You just assume that they work because the people who wrote the built-in functions were good programmers.
如果你没有为拷贝构造函数写正确的代码,就有可能造成list中对象的某些数据成员没有初始化。
If you do not write a correct code for the copy constructor, object within a list will have some data members uninitialized.
也许他们并不会给客户写二项分布函数,但会向他们灌输保险的理念,但这看起来对19世纪的美国女性,并不奏效。
Maybe they didn't write down the binomial distribution, but they explained the idea of insurance and it didn't sound right to the typical nineteenth century American woman.
相反,基本的职业道德要求他写一个“摧毁城市DestroyCity”的函数,“巴格达Baghdad”是一个参数。
Basic professional ethics would instead require him to write a DestroyCity procedure, to which Baghdad could be given as a parameter. (Nathaniel s Borenstein).
现在想想一下,当你尝试理解他人写的正则表达式,该表达式在一个大程序关键函数的中间。
Now imagine trying to understand someone else's regular expressions, in the middle of a critical function of a large program.
现在想想一下,当你尝试理解他人写的正则表达式,该表达式在一个大程序关键函数的中间。
Now imagine trying to understand someone else's regular expressions, in the middle of a critical function of a large program.
应用推荐