How am I gonna go about writing a program?
怎么写呢?
You don't usually have complete freedom when writing a program.
当你写程序时,通常你没有完全的自由。
Reading a book on C++ isn’t the same thing as writing a program.
读一本C++的书,和写一个相同的程序,是完全不同的两码事。
If you find yourself performing a task repeatedly, consider writing a program to do it.
如果您发现自己在重复执行某个任务,可以考虑编写一个程序来完成这个任务。
In such cases, writing a program to build static data tables is usually your best answer.
在这种情况中,编写一个程序来构建一张静态表通常是最好的解决方案。
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.
或者更糟,假设我们准备写一个程序,但在创建它的时候,却向自己的库加入了一个新类,它与现有某个类的名字发生了冲突。
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.
可以编写一些简陋的程序来满足那些简单的示例,对比程序的输出和示例的答案,这样你就可以确认自己理解了题目的要求,并且找到正确的方向。
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.
可以编写一些简陋的程序来满足那些简单的示例,对比程序的输出和示例的答案,这样你就可以确认自己理解了题目的要求,并且找到正确的方向。
应用推荐