很不幸,在C语言里,给变量赋值之前,你必须搞清楚它的数据类型。
Well, unfortunately in c, you have to be ever so specific as to what you wanna put in the variable.
这种代码块更常见的使用是给变量赋值,正如你在视图页面顶部所看到的那种。
A more common use for this kind of code block is to assign values to variables, as you can see at the top of the view page.
本文中的这个例子是将变量赋值给一个矩阵。
All right, c p 1 dot y, x I've said assign that to the value 2, 2,0. So now c p 1 has inside of it an x and y value.
一个特定的版本,我现在命名了一个内置变量,并给它赋值了,我刚刚做的也就是给它。
- And here as promised is that other operator -- looks a little weird, but because assignment is already using the equal sign to assign one value on the right to a variable on the left.
在这里正像所承诺的那样,其他的操作-,看起来有点怪异,但是因为“=“已经被用来当赋值运算符了,用来把右边的一个值赋值给左边的变量。
I can give two names, which will get bound to the two parts of that return tuple.
我可以给它设两个变量,返回的一对值将会被赋给这两个变量。
应用推荐