Write a function that calculates a number's factorial using recursion.
写出一个用递归来计算阶乘的函数。
Write a function that takes a string as input and reverse only the vowels of a string.
编写函数输入一个字符串,将其中的元音字母逆置。
To get a timer to work in an infinite loop, we must write a function that calls itself.
要得到一个无限循环的记时器,我们必须写出一个自我调用的函数。
Because we cannot copy an array, we cannot write a function that takes an array type parameter.
因为数组不能复制,所以无法编写使用数组类型形参的函数。
Given such a graph, write a function to find all the MHTs and return a list of their root labels.
给定一个无向图,编写函数找出所有的最小高度树,并返回其根标号的列表。
Write a function to determine whether you can win the game given the number of stones in the heap.
写一个函数,对与一个给定的石头数目,算出你是否可以赢得这场比赛。
Even though we cannot pass an array directly, we can write a function parameter that looks like an array.
虽然不能直接传递数组,但是函数的形参可以写成数组的形式。
An alternative is to write a function that fetches only the immediate dependency list for a user-selected plug-in.
另外一种选择是编写一个函数,只获取用户选择的插件的直接依赖性清单。
As an exercise, write a function that takes a string as an argument and displays the letters backward, one per line.
下面就练习一下了,写一个函数,接收一个字符串做参数,然后倒序显示每一个字符,每行显示一个。
It's fairly easy to write a function in assembly that is call-able from c, so using both languages wasn't a problem.
而从C里调用汇编写的函数是相当简单的,因此同时使用两种语言不成问题。
To do that, you would write a function to change the text box's font style to bold, based on whatever the form's font is.
若要执行此操作,应该基于该窗体的任何字体,编写一个函数来将文本框的字体样式更改为粗体。
For example, let's say your project requires you to write a function that adds two Numbers, and returns the sum of these Numbers.
例如:你的项目需要你写一个函数,把两个数相加,并返回和。
Common theme asks to write a function in order to realize some function, function name and parameter also can be given commonly.
一般题目都要求编写一个函数以实现某功能,函数名称和参数一般也会给定。
For example, let's say your project requires you to write a function that adds two Numbers, and returns the sum of these Numbers.
比如说,假设你的项目要求你写一个函数把两个数字相加,并返回两个数字的和。
You might want to write a function that takes a word and computes a list of all the words that can be formed by removing one letter.
你也许需要写一个函数,接收一个单词然后计算一下这个单词去掉一个字母能得到单词组成的列表。
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
输入一个数字列表,我们要把所有的0元后置,并要保持非0元的原顺序。
I'd also like to show you an example of how you'd set up your plug-in architecture if you decided to write a function, as opposed to a method.
如果您决定编写函数而不是方法,我还将向您展示一个样例,介绍如何设置插件架构。
Write a function to shift all four counters, calling two functions for shifting three counters, and one function for shifting one counter.
写一个函数来转移所有四个筹码,调用两个函数来转移三个筹码,并且用一个函数来转移一个筹码。
We want to write a function that given a function to compute the sum of a sequence, gives us the next function to compute the sum of a sequence.
我们要编写一个返回另一个函数的函数,用返回的函数计算对序列求和。
If you want to write a function that describes this line here, it's pressure as a function of volume related to each other with this constant.
如果要写出描述这条等温线的方程,它的压强和体积,就通过常数C相联系起来。
To illustrate the technique, I'll write a function that takes the address of an ASCII character, loads it, converts it to uppercase, and stores it back.
为了演示这个技术,我特意编写了一个函数,该函数接受一个ASCII字符、加载它、将其转换成大写并存储回去。
As an example, we'll write a function that takes two points, the center of the circle and a point on the perimeter, and computes the area of the circle.
下面我们写一个函数作为例子,这个函数需要两个点,一个是圆心,一个是圆周上面的点,函数要用来计算这个圆的面积。
We want to write a function that generates accumulators-- a function that takes a number n, and returns a function that takes another number i and returns n incremented by i.
我们需要写一个函数,它能够生成累加器,即这个函数接受一个参数n,然后返回另一个函数,后者接受参数i,然后返回n增加(increment)了i后的值。
Write a function in PokerHand. py that shuffles a deck of CARDS, divides it into hands, classifies the hands, and counts the number of times various classifications appear.
在PokerHand .py中写一个函数来对一副牌进行洗牌,分成多个牌型,对各个牌型进行分类,然后统计不同类型出现的次数。
Write a function called rotate_word that takes a string and an integer as parameters, and returns a new string that contains the letters from the original string rotated by the given amount.
写一个名叫rotate _ word的函数,接收一个字符串和一个整形为参数,返回将源字符串移位该整数位得到的新字符串。
For example, one could write a generic SDO-access function and populate it with element-specific metadata in order to access individual SDOs.
例如,可以编写一个泛型sdo访问函数并用特定于元素的元数据填充它来访问单独的SDO。
Each channel has a predefined function and is either a read channel or a write channel.
每个通道都是一个预定义的函数,它可能是一个读通道,也可能是一个写通道。
For example, you can write and register a validation function that checks for completeness of a service definition.
例如,您可以编写并注册一个检查服务定义完整性的验证功能。
To write a user-defined function for INET_ATON() could be error prone or tedious.
为 INET_ATON()编写一个用户定义函数很容易出错,并且过程很繁琐。
To write a user-defined function for INET_ATON() could be error prone or tedious.
为 INET_ATON()编写一个用户定义函数很容易出错,并且过程很繁琐。
应用推荐