会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
牛郑焜
CnBlogs
Home
New Post
Contact
Admin
Subscription
2017年3月17日
整型中的强制类型转换
这么几个赋值语句:1. short b = 1;2. short b = 1; ++b;3. short b = 1; b+=1;4. short b = 1; b = b + 1;前三段代码没问题,最后一段代码编译器会报错:cannot convert from int to short我之前学过
Read More
posted @ 2017-03-17 12:38 牛郑焜
Views(505)
Comments(0)
Diggs(0)
Edit
公告