摘要: #include "stdafx.h"static int a;int display(int m){static int b=2;//静态局部变量在编译时赋初值,即只赋值一次。运行设置断点可以检验//int b=0;//函数调用时赋值,必须初始化b = b + m;return b;}int _tmain(int argc, _TCHAR* argv[]){ int c; a = 3; printf("%d\n",a); c = display(a); printf("%d\n",c); c = display(a); printf 阅读全文
posted @ 2013-09-11 15:07 露水上的青蛙 阅读(148) 评论(0) 推荐(0) 编辑
摘要: package nine;import java.util.Random;class Value{int m;}public class eleven {static void prt(String s){System.out.println(s);}public static void main(String args[]){int i=1;System.out.println("i= "+(++i));System.out.println("i= "+(i++));Integer n1 = new Integer(22);Integer n2 = n 阅读全文
posted @ 2013-09-11 10:52 露水上的青蛙 阅读(138) 评论(0) 推荐(0) 编辑