Well,what I'd like to do now is move here to a couple of additional pieces, and we're going to use an example of pop music now with a three-chord chord progression.
那么,我们现在要做的是再看其他一些音乐,然后我们会用流行音乐的例子来看看三和弦进行。
This would be? Well let's think through this in one additional way and that is--notice that in duple meter we have a strong beat, right "Strong, weak, strong, weak, strong, weak, strong weak" in that sense or if we have triple it would be "Strong, weak, weak, strong, weak, weak."
是什么呢,我们用另一种方式来想,这个,你们知道二拍子,有很强的鼓点,对吧,强,弱,强,弱,强,弱,强,弱,那在这种情况下如果我们拿一段三拍子,那就会是,强,弱,弱,强,弱,弱
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.
它为我们做了这些事情,这样我们就可以,通过第一个字节的地址,它还可以通过包含一个特殊的值,来保证在哪里停止,如果你输入了一个三个字母的单词,就可以获得那个字符串,不管怎样,我们分配四个字节,因为我们在末端需要一个额外的字节,来保存这个特殊的标志值--反斜杠。
应用推荐