Pascal:如何写函数没有参数?
但是现在,把这当成是写函数,调用的另外一种方式就行了。
But for now, think of this as just another way to write a function call.
文件的打开、关闭、读和写函数(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.
具体地说,这里讨论连接、读、写和释放连接等数据库函数。
In particular, database functions such as connect, read, write, and release connection are covered here.
虚函数简单地向标准输出写一行文本。
The virtual functions simply write a line of text to standard output.
用于写文件的新函数,如下所示。
例如:你的项目需要你写一个函数,把两个数相加,并返回和。
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.
你可以想象,它是一串在Expect中写的封装好的函数。
It was, you guessed it, a bunch of wrapper functions written in Expect.
基于进入系统的时间,写操作具有幂等性(不管操作多少次结果都不变的性质,比如取绝对值的函数就具有幂等性)和交换性(操作顺序不影响结果,比如加法就具有交换性)。
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.
另外,正如您后面将会看到的,NEW_OL _ LOCAL表函数实际上是写一个表。
Second, the NEW_OL _local table function, as you will see later, actually writes to a table.
结果:你被迫去写一些更为短小精炼的函数,这无疑是一个好的趋势。
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).
开始写一个特别小的程序,没有函数定义。
Start by writing a small program with no function definitions.
开始写一个特别小的程序,没有函数定义。
Start by writing a small program with no function definitions.
应用推荐