So, if we look at what the other sub shells are called, essentially we're just converting the number to a letter.
我们来看看,另外的子壳层叫什么,本质上,我们就是把数字转换为,一个字母。
If I'm expecting mostly numbers in, I can certainly try and do the coercion.
数字输入,我能够肯定的来做强制转换。
A If you want to convert a number like 65 to the letter A, you just have tell the computer "cast that int to a char."
如果你要把一个像65这样的数字转换为字母,你只需要告诉计算机“把那个int型数据转换成char型处理“
But if we know that 65 is the int that maps to the capital letter "A," we've already seen verbally that you can convert letters to numbers and numbers to letters, and so here's the syntax with which we'll soon be doing that.
如果我们知道65是个整型数,对应的是,大写字母“A“,我们已经口头地说明,我们可以把数字转换为字符,字符转化为数字,所以这里就是我们将要学习的一种语法。
应用推荐