Error[2]: preg_replace_callback(): Compilation failed: quantifier does not follow a repeatable item at offset 7, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 432
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 432, preg_replace_callback(/(?)(++)/ , object , <===><===><===><===>具体看如下代码,讲解已经在代码中给出:<===> <===><===>public class Test2 <===>{<===><===> public static void main[+++]String[+++][+++] args[+++] <===>{<===><===> //从数学来看是2.5 在java程序中,10是一个整数,2是一个整数,得到的结果也是整数为2 System.out.println[+++][+++] / [+++][+++][+++] //2 System.out.println[+++][+++] / [+++][+++][+++] //2.5 double d [+++] [+++] / [+++][+++] System.out.println[+++]d[+++][+++]//2.0 //%取模,取余 //%的本质,看一个公式:a % b [+++] a-a/b*b System.out.println[+++][+++] % [+++][+++][+++]//1 System.out.println[+++]-10 % [+++][+++][+++] //-1 //10%-3[+++][+++]-10/[+++]-3[+++]*[+++]-3[+++][+++][+++]-[+++]-3[+++]*[+++]-3[+++][+++][+++]-9[+++][+++] System.out.println[+++][+++] % -3[+++][+++] //1 //-10%-3[+++]-10-[+++]-10[+++]/[+++]-3[+++]*[+++]-3[+++][+++]-10-3*[+++]-3[+++][+++]-1 System.out.println[+++]-10 % -3[+++][+++] //-1 //++的使用 int i [+++] [+++][+++] i++[+++] //自增,等价于i[+++]i+1[+++] -<===>><===>i[+++][+++] ++i[+++]//自增 等价于i[+++]i+1[+++] -<===>><===>i[+++][+++] System.out.println[+++][+++] + i[+++][+++]//12 /** * 作为表达式使用: * 前++:++i 先自增后赋值 * 后++:i++ 先赋值后自增 */ int j [+++] [+++][+++] int k [+++] ++j[+++] //等价于 [+++][+++]j+1[+++] [+++][+++]j[+++] System.out.println[+++][+++] + j + [+++] + k[+++][+++] int l [+++] [+++][+++] int m [+++] l++[+++] //等价于m[+++]l[+++][+++][+++]l+1[+++] System.out.println[+++][+++] + l + [+++] + m[+++][+++] [+++] [+++] <===><===> <===>输出结果如下:<===> <===><===>[+++] [+++] [+++] [+++] -1 [+++] -1 [+++][+++][+++] [+++][+++][+++] [+++][+++][+++] [+++][+++][+++] [+++][+++][+++] <===><===> , 1)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 165, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Java 算术运算符,%,++的本质详解_java_内存溢出
保存