如何:在编辑器中打印代码。
我还添加了一个选项,可以打印出绑定的代码生成模型树。
I also added an option to print out the code generation model tree for a binding.
由于每次调用程序时的时间值是不同的,因此对于不同的调用,代码打印的值不同。
Because the value of time is different each time the program is invoked, the code prints different values for separate invocations.
我没有按通常作法将错误代码返回给父代应用程序,而是将错误打印到屏幕,然后退出程序。
Instead of gracefully returning an error code to the parent application, I print the error to the screen and bail out of the code.
这段代码接受来自用户的受感染数据,检查要打印的字符只有字母和数字字符以及空格符,以此来提供安全保护。
This piece of code takes up tainted data from the user, ensuring protection as it checks that the characters to be printed are only alphanumeric characters and Spaces.
小组需要一个检测器来找出代码中捕获异常并要求打印其堆栈跟踪的地方。
The team needed a detector that would find the places in their code where exceptions were caught and asked to print their stack traces.
清单6生成实际计算开始时间后经过的毫秒数,并作为编排好格式的消息打印出来的代码。
Listing 6 generates the code to actually compute the number of milliseconds elapsed since the start time, and to print it out as a nicely formatted message.
清单3中所示的代码直接打印这两个值。
The sample code shown in Listing 3 simply prints these two values.
最后一些代码只是打印生成的XML文档。
The final bit of code just prints out the resulting XML document.
底部的测试代码设置值并打印出新值。
The test code at the bottom then sets the value and prints out the new value.
例如,打印机可以定位代理主机并传递代码以便为该打印机注册打印服务。
A printer, for instance, could locate a surrogate host and deliver code in order to register a printing service on behalf of the printer.
剩下的代码打印顶层消息包的细节和每个条目。
The rest of the code prints out the top-level feed details, and a stanza for each item.
一旦有了与我们搜索的标准相匹配的企业清单,这个代码通过循环该列表并打印所有匹配的企业名称
Once we have the list of businesses that match our search criteria, this code iterates through the list and prints the names of all the businesses that match
通过使用 sys_nerr全局变量和strerror()函数,将可以很轻松地快速编写一些代码(请参见清单5)以打印出系统的所有内置错误消息。
Using the sys_nerr global variable and the strerror() function, you can easily whip up some code (see Listing 5) to print out all of the built-in error messages of the system.
我将整个含有25000行的代码的类打印了出来,让我的同事来找出里面的错误。
I printed an entire class containing 25,000 lines of code and asked my colleagues to find the bugs.
如果这个程序中一条操作码出现了多次,请尝试在dump文件中寻找处理程序代码所打印的序列。
If the program has more than one occurrence of the opcode, try to find the sequence printed by the handler code in the dump file.
在清单4的Scilab代码内,一个示例图形被打印到一个JPEG文件。
In the Scilab code in Listing 4, an example graph is printed to a JPEG file.
为了检查缓存存储中是否存储了URL,您可以使用接下来的代码来打印存储中的每一个缓存。
To check if the URL has been stored in the cookie store, use the following code to print out each cookie in the store.
然后,此代码打印该方法返回的字符串,也就是创建的远程博客文章的 blogid。
Then, this code prints the string that the method returned, which is the blogid of the remote blog entry that was created.
方法中试图打印appointment的代码创建 appointment实例并开始方法链接。
The code to try printing the appointment appears in the method that creates the appointment instance and starts the chain.
下面的代码打印了AppConfig对象中每个变量的内容。
The code below prints out the contents of every variable in an AppConfig object.
LoggingStopWatch类用于在代码中添加计时语句并打印到标准输出或者日志文件中。
The org.perf4j.LoggingStopWatch class is used to add timing statements to code and print those statements to an output stream or log file.
清单4中的代码会打印出“idiganylanguagewith6charactersinitsname !”
The code in Listing 4 will print out "I dig any language with 6 characters in its name!"
我们也需要对“Let”做一小点修改,删除打印到控制台的代码。
We also need to make a small alteration to the "Let", to remove printing to the console.
我们从这里开始,在这里,下一步将要发生了的事情是,这行叫做printf的代码,打印:“交换完成!“对不?
We began here so at this point in the story the next thing that's going to happen is this line called Print F that says swap exclamation point, right?
使用以下代码来打印两个人的高度。
列表13的代码片段设置当用户单击打印按钮的时候,采用的打印模式是PDF还是ActiveX。
The Listing 13 code snippet sets whether to print by using PDF or ActiveX print mode when the user clicks the print button.
最后一段代码调用此方法并打印结果代码,也就是博客服务器上的文章的blogid。
The final block of code calls this method and prints the result code, which is the blogid of the post on the blog server.
用一行代码打印%ENV内容。
在这个示例中,它们仅仅打印跟踪以显示在启动和关闭服务器时确实执行了这段代码。
In this example, they simply print out a trace to show that the code is actually executed during server startup and shutdown.
应用推荐