- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 short s1 = 1; s1 = s1 + 1;有什么错? short s1 = 1; s1 += 1;有什么错?
short s1 = 1; s1 = s1 + 1;有什么错? short s1 = 1; s1 += 1;有什么错? short s1 = 1; s1 = s1 + 1;有错,s1是short型,s1+1是int型,不能显式转化为short型。可修改为s1 =(short)(s1 + 1) 。short s1 = 1; s1 += 1正确。 如果你认为表达式(x += i)只是表达式
2012-08-11 21:30:15 272
转载 ASP.NET 使用URLRewriter伪静态实现简介
什么是伪静态?使用伪静态的作用是什么? 定义:动态网页通过重写URL的方法实现去掉动态网页的参数,但在实际的网页目录中并没有必要实现存在重写的页面。 例如:我们当访问地址http://www.cnblogs.com/ForEvErNoME/archive/2012/06/05/2529259.html时,你会认为在站点服务器下存在名为2529259.html文件,其实实际上它可能是不存在的,而
2012-08-10 06:41:00 401
转载 Newtonsoft.Json序列化和反序列
这里下载:http://www.newtonsoft.com/products/json/ 安装: 1.解压下载文件,得到Newtonsoft.Json.dll 2.在项目中添加引用.. 序列化和反序列在.net项目中: Product product = new Product(); product.Name = "Apple"; produc
2012-08-10 04:28:14 308
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人