How am I gonna go about writing a program?
怎么写呢?
Reading a book on C++ isn’t the same thing as writing a program.
读一本C++的书,和写一个相同的程序,是完全不同的两码事。
If you're writing a program and you're testing it and recompiling.
如果你写一个程序,检测,然后重新编译。
Writing a program to find the largest in a series of Numbers.
编写一个程序来找到最大的一系列数字。
You don't usually have complete freedom when writing a program.
当你写程序时,通常你没有完全的自由。
So writing a program at least in this language is a two-step process.
用这种语言写一个至少需要,两步完成的小程序。
When a programmer is writing a program, he makes a error in his code.
当程序员编写程序时,其代码中存在某个错误。
In such cases, writing a program to build static data tables is usually your best answer.
在这种情况中,编写一个程序来构建一张静态表通常是最好的解决方案。
If you find yourself performing a task repeatedly, consider writing a program to do it.
如果您发现自己在重复执行某个任务,可以考虑编写一个程序来完成这个任务。
When you are writing a program, it is always clear and self-evident what you are trying to do.
当你正在编程序时,总是试着使它清晰自明。
So it turns out that, main, yes, is the default function you write, at least in c, when writing a program.
结果是,main函数,是的,这是你写的默认函数,至少是在C语言中,当写程序的时候。
Why would a high-level language not be an ideal tool for writing a program that directly accesses a particular brand of printer?
为什么高级语言不是编写直接访问某一品牌的打印机程序的理想工具。
Instead of writing a program for thousands of different machines, developers could write it once for Windows and have it run on every PC, no matter who built it.
开发人员不必面对上千种不同的机器,只需针对Windows写一次程序,就可以在每一台个人电脑上运行,不管是谁造的。
From watching the video to building an electronic board and writing a program for it, Lin spent an entire month bringing Crazyer to life. His hard work paid off.
从看视频到做电路板,再到给它写程序,林海花了整整一个月的时间,最终发明出“酷乐宅”。他的努力没有白费。
Or worse, imagine that you're writing a program, and as you're building it you add a new class to your library that conflicts with the name of an existing class.
或者更糟,假设我们准备写一个程序,但在创建它的时候,却向自己的库加入了一个新类,它与现有某个类的名字发生了冲突。
By 10th grade he was teaching computers and writing a program that handled class scheduling, which had a secret function that placed him in classes with the right girls.
到十年级时,他开始教授电脑课,并且设计了一个解决排课任务的程序。其中有个很秘密的作用,将他和一些好女孩分在了一起。
If you're writing a program that has to work very closely with a program written in a certain language, it might be a good idea to write the new program in the same language.
如果你的程序要和另外一个用某种语言写的程序打交道,那么通常新程序采用同样的语言是个好选择。
The important thing to realize in programming is programming is not just about writing a program that the computer understands. Programming is about writing programs that people understand.
对编程至关重要的是,不仅仅写出计算机能够读懂的程序,更要让人读懂。
Try writing a program to generate for simple cases and check that your output agrees with the example cases; this will confirm you've understood the problem and are heading in the right direction.
可以编写一些简陋的程序来满足那些简单的示例,对比程序的输出和示例的答案,这样你就可以确认自己理解了题目的要求,并且找到正确的方向。
We then examined a specific instance of table-building and went through the motions of writing a code-generating program to build static tables in c.
然后又介绍了一个具体的构建表的示例,并介绍了用c编写这样一个代码生成程序来构建静态表的详细过程。
Continuous writing to a disk can largely degrade the performance of a program, causing it to run slowly.
持续地对磁盘进行写入操作可能会极大地降低程序的性能,导致其运行速度缓慢。
So the first thing a programmer should know before writing or debugging a program is the program's requirements.
因此,程序员在编写或调试程序之前首先应该知道的是程序需求。
Writing effective timer-driven managed code requires a clear understanding of program flow and the subtleties of the.net threading model.
写一个高效的定时器驱动型可管理代码要求对程序流程有一个清晰的理解及掌握。NET线程模型的精妙之处。
Specifically, you're probably writing code that looks something like Listing 1, a fragment from a program that parses an XML document using SAX.
明确地说,您也许正编写与清单1相似的代码,使用SAX解析xml文档的程序的一个片段。
The real hard work in writing a parallel program is to make N as large as possible.
在编写并行程序时真正困难的事情是使N尽量大。
When writing a DB2 program, update the values on the DB2 tab as shown in Figure 14.
在编写DB2程序时,更新 DB2选项卡上的值,如图 14 所示。
In a thread-safe program, only one writing thread can modify the variable; other threads can read the up-to-date value by declaring the variable volatile.
在一个线程安全的程序中,只有一个写线程能够修改这个变量;而其他的线程则可以读取volatile声明变量的最新值。
In a thread-safe program, only one writing thread can modify the variable; other threads can read the up-to-date value by declaring the variable volatile.
在一个线程安全的程序中,只有一个写线程能够修改这个变量;而其他的线程则可以读取volatile声明变量的最新值。
应用推荐