Today the idea lives on in a new generation of string trimmers and edgers that people often call weed whackers.
VOA: special.2011.07.19
So it's a useful way of not quite knowing in advance what you want to put in a string, but being able to create strings, phrases, sentences, dynamically.
这是一个很有用的方法,如果你之前不是很了解,在句子中要加入什么,但是这个方法可以,动态地创建字符串,短语,句子。
The node is the same thing you see in a string.
这里所说的节点和你所知道的可以同样理解。
During this time, Dean launched his singing career with Columbia Records and produced a string of minor hits in the 1950s.
VOA: standard.2010.06.14
I don't happen to like this, but he thinks that is, give a combination of a number multiplication in a string, this will in fact give us back a new string with that many replicas, if you like, of the string concatenated together.
我不喜欢这么做但是他认为,也就是说,返回一个字符串的,某个特定数字的倍数,这实际上会返回一个新字符串,一个原来的字符串的很多复制品,连接到一块的一个字符串。
Despite a string of attacks early Sunday,mainly in Baghdad, insurgents were not able to carry out the massive strikes they had threatened.
VOA: standard.2010.03.08
Well, turns out that with arrays, not to make this too trippy too soon, but Arg V bracket something is a string, you can also use square bracket notation to go to a specific letter in a string, because little teaser a string is just an array.
好的,结果用那个数组,不要使这个很快引起幻觉,但是Argv什么的,是一个字符串,你也可以用方括号定位到,字符串中的一个特定的字母,因为一个字符串只是一个数组。
They set off a string of bombs that damaged equipment in the machine room and started a fire that authorities rushed to put out.
VOA: standard.2010.07.21
Why? Any violinists in here or anybody who ever played a string instrument?
这又怎样,这里有小提琴手吗,或者有人拉过弦乐器吗
He led a breakaway faction of the Southeast Asian terrorist network Jemaah Islamiyah, which has carried out a string of bombings in Indonesia in recent years.
VOA: standard.2009.09.17
b OK. In this example I'd use b. All right, as b get-- b is the thing that's changing as I go along here, but it could be things like, how many elements are there in a list if the input is a list, could be how many digits are there in a string if the input's a string, it could be the size of the integer as we go along. All right.?
好,在这个例子里我会用,因为b是一直在变的东西,但是也可能是如下情况:,如果输入是数组的话,变化的就是数组的元素数,如果输入是字符串的话,变化的就是字符串的长度,如果是integer的话,可能就是这个数的大小,对不对?
And then hash character takes in any string or character, single character, gives me back a number. Notice what I do.
然后哈希接受任何字符串或字母,单个字符,返回给我一个数字,注意我要做什么。
The second thing is, just as in the case of the violin string, the wave equation, as posed by Schrodinger, has a plurality of solutions.
第二,就那个小提琴弦而言,波动方程,被薛定谔所提出的,有许多解法。
STUDENT: Good question. Sounds like a reasonable guess How in the world am I going to compare a string to a number?
学生:不可闻的声音:,很好的问题,听起来像一个很合理的猜测,我到底该怎么对一个字符串,和一个数字进行比较呢?
Point of absolute rest in a vibrating string we call a node.
一条绳子上绝对震动静止的点,我们称之为节点。
So, I'm getting a string and so what really am I doing in this line of code?
那么,我得到一个字符串,这行代码实际上是干什么的呢?
So now, in a program and you're asking the user for a string.
我们再回到程序里,向用户要一个字符串。
>> Those bytes in the row are called-- >> A string.
>,这一行字节就是所谓的-,>>,字符串。
String is actually not a data type in C. It actually is something called a char star and we'll come back to this before long.
字符串在C语言里其实不是一种数据类型,而是一种称为char,*的数据类型,这个知识点我以后会讲到。
Notice what it says. I'm going to pass in 1 a string, call it s, binds it locally, and it says the following.
然后看接下来的内容,接下来说的是如果这个字符串的长度等于,那么我就成功了。
There's a function in purple, there's a string in green, and in black I have the assignment statements.
还有个粉色的方法,绿色的字符串,赋值声明是黑色的。
I just doubled the indentation each time so you can see it. So each successive call, notice what's happening. The argument is getting reduced. And we're going another level in. When we get down to this point, we're calling it with just a string of length one.
因此每次成功调用注意它的过程,我们的命题不断简化,而且我们不断深入嵌套,当我们走到这一步的时候,我们就是在调用它处理,仅有一个元素的字符串了。
GetInt You've been calling get string; you've been calling get in, maybe get float and a couple of others.
你可以调用GetString,可以调用,可能是GetFloat,或者其他的函数。
But there's an important thing going on here, if I in fact wanted to combine those into a string I should have told the machine to do that, and I can do that, by explicitly saying, take that, which is a number, then add it to that string.
但是这里有个很重要的事情,实际上想要把这些加到一个字符串里面去,我应该告诉计算机去做这个,我应该这么做,通过明确的输入,也就是把这个对象,一个数字,然后把它加到一个字符串里面去。
In this case, the basic column of air is twelve and a half feet long and there are something called "Partials" or the "Harmonic series" That happens in anything, on a string instrument or whatever, but on the horn it's very distinct and that's what makes the different notes.
像这样,基本空气柱有十二个,每个半英尺长,圆号能发出分音,或泛音列,弦乐器或是,其他别的乐器中都有,但在圆号上,效果相当不同,这就是它能奏出不同音符的原因
Here is the pitch in--of--a string an octave higher so you can see it this way. As you probably know, if you take a long string and pluck it, it's going to take that long string a long time to pass that sort of cycle, if you will, just one pass through that cycle.
这也是个音高,一个高八度的音弦,你可以这样这样看 你们可能知道,如果你拨动长弦,长弦要经过很长时间,才能完成一个震动周期,如果你想,可以尝试下
And if that's true is everything in the string, starting at the first element and removing the last element, a palindrome?
如果是相同的话,是不是字符串中的所有从第一个元素开始,并且删除最后一个元素后?
Even though my statement said enter a number, in particular, raw input here simply takes in a set of characters and treats it as a string.
即使我的陈述说的是应该输入一个数字,实际上,这里的原始输入会被当做一个字符,的集合来提取并被当做一个字符串来对待。
It's just a chunk of characters back to back to back so this is storing at the very first location in the string what?
它只是一串紧邻的字母串,所以它把什么存储在,字符串的第一个地址下?
So it does that for us so that you can get away with just knowing the address of the first byte and it will make sure that you know when to stop by including the special value so, in fact, get the string if you type in a three-letter word, we allocate four bytes no matter what because we need an additional byte 0 for this special sentinel value back slash zero at the very end.
它为我们做了这些事情,这样我们就可以,通过第一个字节的地址,它还可以通过包含一个特殊的值,来保证在哪里停止,如果你输入了一个三个字母的单词,就可以获得那个字符串,不管怎样,我们分配四个字节,因为我们在末端需要一个额外的字节,来保存这个特殊的标志值--反斜杠。
应用推荐