Well, recall that very basic building block we introduced 1 last week which allowed you to grab a random number between 1 and 10 or 1 or a hundred.
好吧,让我们先回想一下上周介绍过的,能产生1~10之间,或者1~100之间随机数的1,基本构建块。
It's just a little block of memory in RAM, you know, that represents four bytes, 32-bits and the Number Two is currently in it.
它只是一小块内存块,它表示4个字节,32位,那个数字2就存储在里面。
You have a nice grid pattern and you can use a city block metric to add up the number of blocks between people's doors.
整个城市呈格网状,你可以数数,人们相隔多少个街区。
-- Else if n is greater than 4 and n is less than 6 -- 7 let's call it medium -- else if n is greater than or equal to 7, -- less than or equal to 10 -- let's call it "big" -- and if the user typed in zero or negative 10 or 20 or whatever, let's just use the all-inclusive else block and just say, "You picked an invalid number."
否则如果n大于4,并且n小于-,我们叫它为中间数--否则如果n大于等于,小于等于10--我们叫它为“大数“,如果用户键入了0或者-10或20或其它的,让我们用一个广泛的else子句,只需要说,“你选了一个非法的数字“
应用推荐