int a = 1; int b = 2; Response.Write(a + b + "-");
如上,结果是:3-,还是:12- 呢?
答案:3-
也就是说:在没有遇到字符串之前,+ 都按数学中的加号对待。
创建于2005年 渝ICP备05010272号-1
电邮:cftea@126.com