JAVA & C++ & C
lenovocn
这个作者很懒,什么都没留下…
展开
-
Linux C memory space allocation
For details, please refer to the original blog: http://blog.csdn.net/embedded_hunter/article/details/6897027 The example C code: #include #include int global_init_a=1; int global_init_b=1; int原创 2013-03-14 18:00:26 · 277 阅读 · 0 评论 -
Java中从内循环跳出外循环
最近在面试的时候被人问到java中如何从内循环跳出外循环,当时没想出来,不过觉得挺有意思的,琢磨了一下,整理如下: 看下面一段代码: public static void main(String[] args) { for(int i=0;i<10;i++){ for(int j=0;j<10;j++){ System.out.println("i=原创 2013-03-27 16:10:07 · 877 阅读 · 0 评论 -
[Java]用递归判断是否为递减数组
No pinyin input method on this machine, so directly paste the code: /** * Judge whether the array is decreased * @param array * @return */ public boolean isDecrease(int[]原创 2013-03-28 16:01:22 · 453 阅读 · 0 评论