Don't define constants as variables or functions.
不要将常数定义成变量或函数。
Include files (or header files) define constants, macros, and other structures used in the operating system or in a particular library.
包含文件(或者头文件)定义了在操作系统中或特定的库中使用的常量、宏以及其他结构。
For my application, I define a few runtime constants that describe the scenarios I am interested in during a particular simulation run.
对于我的应用程序,我定义了几个运行时常量,它们描述了在特定的模拟运行期间我感兴趣的几个方案。
You will define the required constants and require the config file.
您将定义必要的常量并要求配置文件。
Listing 3 shows an example of using PHP namespaces to define local and global string constants.
清单3显示了使用php名称空间定义本地和全局字符串常量的一个例子。
For ease of use, we define a EventConstants class to declare some useful constants such as topic strings.
为便于使用,我们定义了一个eventconstants类来声明一些有用的常量,例如主题字符串。
You'll need constants to represent the image mode versus the comment mode for the basic SimpleDB operations, so define them here.
您需要使用常量来表示基本SimpleDB操作的照片模式和评论模式,因此在此处定义它们。
The physical laws and constants have helped us define and tame the natural world.
这些物理定律和物理常数帮助我们界定和征服自然界。
After this, you define several constants for your stack frames.
之后,为堆栈框架定义几个常量。
In the above example we define some constants, get the site path, and also check to make sure that the current PHP version is at least5.1.
在上面的例子里我们定义了一些常量,得到了站点的路径,并且还检查了当前的PHP版本至少应该是5.1。
The second use, value injection, is good for allowing objects not created by the container to receive framework constants. Objects using value inject must define the the static attribute.
后者,值注入,有利于允许对象不被容器创建来接收框架常量。对象用值注入必须定义静态属性。
Lists the classes and methods used to define string constants.
列出用来定义字串常数的类别和方法。
Add the methods, properties, fields, events, constructors (method), and constants that define the module.
添加定义模块的方法、属性、字段、事件、构造函数(方法)和常量。
An enumeration type (also named an enumeration or an enum) provides an efficient way to define a set of named integral constants that may be assigned to a variable.
枚举类型(也称为枚举)为定义一组可以赋给变量的命名整数常量提供了一种有效的方法。
An enumeration type (also named an enumeration or an enum) provides an efficient way to define a set of named integral constants that may be assigned to a variable.
枚举类型(也称为枚举)为定义一组可以赋给变量的命名整数常量提供了一种有效的方法。
应用推荐