摘要: #1.java的类型 ##基本数据类型: byte(1B),short(2B),int(4B),long(8B),float(4B),double(8B),boolean(1B),char(2B) ##应用数据类型: class,interface,arrary #2.String能被继承吗?为什么 阅读全文
posted @ 2020-03-07 21:45 four_z 阅读(206) 评论(0) 推荐(0)
摘要: #字符串转为int数字 ##思路: 思路不难,但又很多注意的地方,如输入的字符串为"",为空指针。字符串符号问题,字符串有非法字母。数据溢出。 ##代码: static bool Invalid = 0; #define MaxInt 0x7FFFFFFF #define MinInt 0x8000 阅读全文
posted @ 2020-03-07 00:12 four_z 阅读(206) 评论(0) 推荐(0)