- And then I divide by an int -- that's okay because so long as you have a float involved at some point early on, you're okay.
然后我除以一个整型数-,那是可以的因为现在为止,我们在之前已经,引入了一个浮点数,你是对的。
Well basically what we're doing is we're giving ourselves the ability to create data types the same way that we have some built-ins, so we have things like int, float, string, these are built-in data types.
就是要赋值我们自己创建,和内置的数据类型,相同的数据类型的能力,我们有一些内置的数据类型,如int,float,string等,如果你考虑下这些数据类型。
- We know from Wednesday if -- briefly -- that there's this thing called a "char" or "char," depending on how you want to pronounce it, which is just a single character but where there's also an int.
我们知道从周三起--简单说下-,我们有个叫做“char“或“char“,看你们怎么读它了,那代表一个单一的字符,但那里会有个整型数与之对应。
Is there a key word like int or char double with which you can represent a 1024-bit value?
有一个像int,char,double这样的关键字,用来表示一个1024位大小的数值呢?
- And actually, it's worth noting an int -- 4 billion -- we didn't even solve that problem.
事实上,int数据类型还是没什么用--40亿-,我们还是没有解决那个问题。
float So thus far, when we've defined -- declared an int and a float, 2 and so forth, we just put one value in there, the number 2, the number 3.14, just one single value.
至此,当我们定义--声明一个int,和一个,等等,我们只要在那里放置一个值,数字,数字3,14,只有一个值。
- And, in fact, let's see -- -- don't do this at home or on our systems -- but let me go ahead and do nano don't do this dot C. Let's go int main ahead and do int main void.
然后,实际上,让我们看看-,不要在家里或者在我们的系统上这样做-,但是让我们继续处理nano,dontdothis,c文件,让我们继续。
- So now if Christiana doesn't actually -- if either programmer or who's programming these little puzzle pieces, don't actually do anything with this return value, and I call, get int, she wants to hand this piece of paper -- to me, but if I don't actually assign -- no, no, I just messed up the demo.
现在如果Christiana没有-,如果程序员或谁在编写这段代码,不要对这个返回值做任何事情,我调用GetInt,她把这张纸给我,但是如果我没有赋值-,不,不,我刚才把这个演示搞乱了。
Because even though it's a little confusing or a little sort of contradictory, the argument count includes the name of the program itself, -- which can actually be int useful because if someone -- if a producer changes the name of a program by renaming a file, you, the program still have access to your own name by this mechanism.
因为即使它有点迷惑的,或有点冲突的,参数计数包括程序的名字,那个可以是int型的,因为如果有谁-,如果程序员通过重命名改变了一个程序的名字,你仍然可以用这个机制,使用你自己的名字。
应用推荐