Begin with a simple program that reads in a filename from the command-line.
首先从一个简单的程序开始,该程序从命令行读入一个文件名。
Listing 1 shows a very simple program that simply exits with an exit code of 2.
清单1给出一个非常简单的程序,它的作用仅仅是使用退出码2退出。
Installing a simple program on a computer, she said with a laugh, "is quite a bit easier."
现在只需要在笔记本电脑上安装一个简单的程序就行了,她笑着说,“这样就简便了许多。”
So, take a look at how a simple program is constructed to perform processing tasks on the SPE.
因此,让我们来了解一下简单程序是如何构造来在SPE上执行处理任务的。
Listing 3 is a simple program to print the log-base 2, 10, and e of the integers from 1 to 100
清单3是一个简单程序,它输出整数 1 到 100的以2、10和e 为底的对数
This application is a simple program that creates and edits lists of names.
这是一个简单的应用程序,用以创建和编辑名字清单。
A simple program architecture would naturally mix the business logic with data access logic (like SQL).
简单的程序体系结构会自然地将业务逻辑和数据访问逻辑(如sql)混合。
Listing 7 is a simple program to read and print out the contents of the database, sorted by the name field.
清单7是一个简单的程序,它从数据库中读出数据的内容,并将其打印到屏幕上,在打印时对name域进行排序。
Let's take a look at a simple program that will create a database table and populate the table with data values.
让我们来看一个简单的程序,它能创建一个数据库表并填入数据值。
Listing 1 demonstrates this technique with a simple program to print the encodings of all URLs given on the command line.
清单1通过一个简单的程序说明该技术,输出命令行中给定的所有url的编码。
Using an updated Linux kernel with the HDAPS driver, you can use a simple program called knockAge to generate knock codes.
使用带有HDAPS驱动的已更新的内核,我们就可以用一个简单程序knockAge来生成敲打代码了。
However, the m17n software development kit (SDK) does include a simple program that displays files in a variety of encodings.
然而,m17n的软件开发包(SDK)确实包含了一个简单的程序,它可以使用各种编码来显示文件。
Using just these attributes, you can construct a simple program that animates changes to the width of a view, as in Listing 4.
通过使用这些属性,可以构造一个简单的程序,该程序以动画效果改变一个视图的宽度,如清单4所示。
This article presents a new twist — knock codes — and a simple program to run commands when specific knock codes are detected.
本文将展示“敲打代码”这种新技术和一个简单程序,该程序在检测到特定的敲打代码时会运行一些命令。
For the purposes of describing where to put the probes, we're going to look at a simple program for determining prime numbers.
为了说明把探测放在什么地方,我们来看一个用于判断素数的简单程序。
I'll use the "Hello World" program to illustrate the creation of a simple program to emit a simple text string to the display.
我使用“Hello World ”程序演示如何创建简单的程序,将一个简单的文本字符串发送到显示器。
This communication approach has the following advantages: high reliability, low cost, simple program, easy to use and maintain.
该方法具有可靠性高、成本低、程序简单、使用维护方便等优点。
It's an incredibly simple program: The site has a white page with a single task written on it (you can change it to your own tasks).
这是一个难以置信的简单程序:网站提供了一个空白页面,上面只写有一个任务(你可以将其修改为自己的任务)。
The default settings use the most conservative options and work fine for a simple program, such as the sample included with this article.
缺省设置使用最保守的选项,适用于简单的程序,如本文附带的示例。
It is unusual to view the XML file as it stands. Instead, people use a so-called feed reader, a simple program that reads and formats the feed.
很少有人按原样查看XML文件,大多数人都会使用所谓的提要阅读器——一种简单的程序,用于读取和格式化提要。
You can use the macro editor to edit the content of the module to add the simple program code, and then you can save the new module with the macro.
您可以使用宏编辑器编辑模块内容,添加简单的程序代码,然后使用宏保存新的模块。
Objective Describes how to improve the efficiency of PET/CT image post-processing by developing a simple program running in PET/CT workstation.
目的在PET/CT工作站开发第三方辅助程序,以改善日常PET/CT检查图像后处理工作流程,提高工作效率。
This method as recommended in this paper is featured with simple program, less inner storage, no iteration and result obtainable at one stroke.
本文提出的方法具有计算速度快,程序简单,占用内存少,不需要迭代,计算一次即可得出结果等优点。
One of the first assignments I give the students in software engineering is to write a simple program, but to work in pairs (i.e., try pair-programming).
在软件工程学中我给学生们的第一项作业是写一个简单的程序,但让学生们成对地工作(例如,尝试成对编程)。
To begin looking at SPU assembly language, I will enter in a simple program for calculating the factorial of a 32-bit number using a recursive algorithm.
在开始介绍SPU汇编语言之前,先来看一个通过递归算法计算32 位数的阶乘的简单程序。
The qmail-remote program is a simple program that reads an email from standard input, and delivers it to the hosts and recipients specifi ed to it by arguments.
qmail-remote程序是一个简单的程序,它从标准输入读取邮件,然后将它发送给由它的参数指定的主机和收件人。
Let's say you want a lookup table that will return square roots of Numbers between 5 and 20. A simple program can be written to generate such a table like this.
假设我们希望得到这样一个查找表:它返回5到20之间各个数字的平方根。
In less than 20 lines of code (actually, there are only eight that are doing anything), you have built a functional chat server. Here is the flow of this simple program.
在不到20行代码中(实际上,真正实现功能的代码只有8行),您已经构建了一个能够使用的聊天服务器。
In less than 20 lines of code (actually, there are only eight that are doing anything), you have built a functional chat server. Here is the flow of this simple program.
在不到20行代码中(实际上,真正实现功能的代码只有8行),您已经构建了一个能够使用的聊天服务器。
应用推荐