Now at this point in the story, I have a variable called name, stored inside of that is the string, literally David.
再回到这里,我有一个名为name的变量,而且把字符串David赋给了name变量。
When you declare a pointer yourself manually, you do say char * the variable name because recall that's the same thing that we did earlier but we called it instead string.
当你手动声明一个指针是,你可以说char,*,变量名字,因为那是我早些时候做的事情,但是我们叫它为字符串。
int So whereas before I mentioned int, turns out if you wanna put a string in a variable, you have to say this is a string.
先不管我之前提到的,如果你想把一个字符串赋给某个变量,那你必须事先声明这个变量是string类型的。
N So, I'm initializing a variable called N to the string length of s1.
我初始化一个变量,等于s1的字符串长度。
应用推荐