Listing 4. shows modifications to the main method.
清单4 .显示了对main方法的修改。
Testing the main method does not work with all applications.
测试main方法并不作用于所有的应用程序。
Add a line to the main method creating a Vector called names.
在main方法中加入一行代码,创建名为names的Vector。
Now, when the main method runs, the output looks like that in Listing 6.
现在,main方法运行时,输出如清单6所示。
The main method following the enumerated type definition demonstrates the usage.
位于枚举类型定义之后的main方法演示了这种用法。
The main method then only puts NanoDelay objects into the queue and takes them out again.
然后main方法只是将NanoDelay对象放到队列中并再次将它们取出来。
Now all you need to do is add code to the main method to delete any posts older than 30 days.
现在只需要把代码添加到main方法中来删除发布超过30天的所有post。
Listing 6 is the loadlib.h header file, which is used in the sources that call the main method.
清单6中是loadlib. h头文件,在调用main方法的源文件中使用了这个文件。
Now, when you run the main method, the Automobile object's toString output looks like Listing 8.
现在,运行main方法,Automobile对象的toString输出如清单8所示。
Next, we need to add some code to the main method to instantiate the class and run the SWT code.
接着,我们需要向main方法添加一些代码,以便实例化该类并且运行SWT代码。
It's the main thread that is implicitly created on process startup and executes the main method.
它是启动过程中隐式创建的主线程,执行main方法。
Let's now turn our attention to the main method. It creates an event-handler object and a parser object.
现在,让我们将注意力转向main方法。
The main method, shown in Listing 2, creates a new instance of the class and calls the signOn method.
如清单2所示,main方法创建这个类的一个新的实例,并调用signOn方法。
The first line inside the main method USES the same short-hand notation for map that we just examined.
main方法的第一行使用了和我们刚才产看过的map方法一样的简写。
In a simple single-threaded application, 100 percent of the Tree time would be spent in the main method.
在一个简单的单线程应用程序中,100%的Tree时间将用于main方法。
Here, we have a class called Hello, where the main method merely creates an ApplicationWindow, then opens it.
这里我们创建了一个名为Hello的类,其中main方法仅仅创建了一个ApplicationWindow,然后打开它。
The static initializer runs first, as the class is loaded, followed by the main method (which is also static).
加载类之后,静态初始化器首先运行,紧接着运行的是main方法(也是静态的)。
After you have added the new variables to your classes, add the handler code to the main method of the OGAdmin class.
向类添加了新变量后,请将处理程序代码添加到ogadmin类的main方法。
Alter the logic in the main method of the OGAdmin class to make it acceptable to provide the a "l argument by itself."
更改ogadmin类的main方法中的逻辑,使其能接受仅仅提供—l参数的情况。
The cycle table is an entry point for SAFS, which is similar to the main method in C. These files have the.cdd extension.
Cycle表格是SAFS的进入点,它与c中的main方法相类似。这些文件拥有. CDD的扩展名。
To enable sorting of the columns, you must add the following code to the main method before calling the Shell.open method.
要对列启用排序功能,您必须在调用Shell . open方法前向main方法中添加以下代码。
First, in the main method, your code grabs the Spring application context. This is the configuration file seen in Listing 1.
首先,在main方法中,您的代码捕获Spring应用程序的上下文,就是您在清单1中看到的配置文件。
To explain Listing 2, I'll start with the main method, which is what is executed first, and then follow the code from there.
要解释清单2,必须首先介绍main方法,因为该方法将先执行。然后再接着介绍清单 2。
The main method in this class is the process method (Figure 3) that opens the original BAR file and loops through its content.
类中的主要方法就是打开原始的BAR文件并循环执行该文件内容的处理方法(图3)。
The main method now explicitly loads the printHello.dll file and invokes the print method for the same, as shown in Listing 7.
main方法现在显式地加载printhello . dll文件,并调用相同的print方法,如所示清单7中所示。
The problems are that if the HelloWorld class is not found or if the main method doesn't exist, the native will cause a crash.
问题在于,如果未发现helloworld类,或者如果main不存在,则本机将造成程序崩溃。
Compared with thrusters, which remain the main method of steering the spacecraft, the effect of the reflecting devices is slight.
与仍然控制宇宙太空船飞行主要手段推进器比较,反射装置功率是微小的。
The main method simply enables you to invoke the Eight Ball from a command line; you will not use it from your web services clients.
main方法只是使您能够从命令行调用EightBall;您将不在自己的Web服务客户机上使用它。
The main method then proceeds to delegate the parsing of the argument to a CmdLineParser object, which then returns an Options object.
main方法然后会将参数解析委托给CmdLineParser对象,后者将返回Options对象。
Not surprisingly, the run method contains the code I wrote to create new instances of those objects and the main method calls the run method.
不用惊讶,run方法包含我编写的、用来创建这些对象的新实例的代码,而main方法则调用run方法。
应用推荐