s1 It's a little square, it's going to be called s1 and that's what exists as of line two of this program, GetSting but now I've called get string.
这是一个正方形,叫做1,这就是程序中第二行代码所表示的,现在我调用。
But I can also ask for parts of this. So I can, for example, say give me the first element of s1 string 1, s 1. Ah, that's exactly what we would have thought if this was represented as an ordered sequence of things.
然后返回一个长字符串,我也可以,取字符串的一部分,例如,我可以要求返回给我字符串,的第一个元素,啊,这证明我们之前,认为的它是一个有序的字符序列的想法。
String players are taught whether it's cellists going this way, downbeat or violas and violinists coming down this way that the downward motion of the hand or the pull across the strong pull across should come with the downbeat; that emphasizes the downbeat.
弦乐手们都是这样教出来的,是不是大提琴手这样的时候或者中提琴手,还有小提琴手们在这里这样拉,当手势冲下,很重的向下的手势时候,是重拍出现的时候,都是在强调重拍的
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.
这也是个音高,一个高八度的音弦,你可以这样这样看 你们可能知道,如果你拨动长弦,长弦要经过很长时间,才能完成一个震动周期,如果你想,可以尝试下
It's only copying the address that was returned by get string so even though conceptually is the name this program suggests, I really just want to make a copy so that maybe I can make one version of D-A-V-I-D or F-O-O all uppercase or all lowercase or I want to spell check, something.
而只是复制GetSting返回的地址,虽然这个程序表示的名称,我只想做一个拷贝,以便我可以做一个D-A-V-I-D或者F-O-O的版本,大写的或者小写的,或者拼写检查之类的。
I'm going to use the CS50 Library instead for user input I'm saying say something then I'd get a string from the user and I call time s1 and then I say, say something, s2 and then I get another string from the user and call it s2 and apparently this program's purpose in life is to tell me yes or no the user said the same thing both times.
然而我使用的是CS50库来获得用户输入,我说点什么,然后从用户那里获得一个字符串,并把它叫做s1,然后我说点什么,然后从用户那里获得一个字符串,并把它叫做2,这个程序的最终目的是,告诉我两次用户输入的是不是同样的东西。
应用推荐