标签:style blog color ar java sp div log c++
1.用C实现数字逆转,用递归实现,很简单。
package 京东; public class Main { private static int a=0; public static void fun(int m) { if(m!=0) { a=10*a+m%10; fun(m/10); } } public static void main(String[] args) { // TODO Auto-generated method stub fun(-7); System.out.println(a); } }
2.
标签:style blog color ar java sp div log c++
原文地址:http://www.cnblogs.com/hansongjiang/p/4019625.html