摘要: 转http://blog.csdn.net/cxwen78/article/details/6400798eclipse怎么编写JAVA,然后运行1.新建一个Java project取个名字(首字母大写)。其他的不管。2.然后在文件上右键创建一个class文件,名字开头要大写。其他的不管。3.然后在... 阅读全文
posted @ 2014-06-03 23:15 jihite 阅读(500) 评论(0) 推荐(0)
摘要: 要求Implement pow(x,n)解1. 特例n=0, 直接返回1n=1, 直接返回xn 0 ? n : -n);pow(x, index) = (index %2==1 ? pow(x, index/2)*x : pow(x, index/2));继续优化pow(x, index) = (i... 阅读全文
posted @ 2014-06-03 17:41 jihite 阅读(818) 评论(0) 推荐(0)