For example, to define a structure called mytype containing a longword, a word, a byte and a string of bytes, you might code
基于1个网页-相关网页
Listing 1 shows a bash shell script that you might code to try running the xclock command for a specified period of time.
您将编写清单1所示的bash shell脚本来按照指定的时间段运行xclock命令。
After looking at this code, you might say, well, I have a better solution.
查看此代码之后,您可能会说,这非常好,我拥有了一个更好的解决方案。
For example, you might want to generate code from a UML model.
例如,您可能想从一个UML模式中产生代码。
So if you're coming from prior background, your code might work a little differently on a different system if you don't use those flags.
如果你来自一个先前的背景,如果你们没有使用这个版本标志的话,在一个不同的系统中,你的代码可能运行地不太一样。
In a high-level language, square root might simply be a primitive that you can use rather than you having to go over and code it.
一个高级的语言,平方根可能仅仅,只是你能使用的一个基本要素,而不是你需要去编译它。
OK, so how can I code this up? Well, you might think, let's just jump in and write some code, I don't want to quite do that though, because I want to show you another tool that's valuable for thinking about how to structure the code, and that is a something called a flow chart. Now.
好,那么我怎么把这个以代码实现呢,你可能会想,让我们进去直接写代码把,但是我不想这么做,因为我想教给大家另外一项很有价值的,用来组织代码的工具,叫做流程图,现在,像Guttag教授,和我这么大岁数的人。
应用推荐