摘要: 1 class Human{ 2 } 3 4 class Man extends Human{ 5 } 6 7 class Woman extends Human{ 8 } 9 10 public class Test {11 12 void show(Human h) {13 System.out.println("Human");14 }15 16 void show(Man m) {17 System.out.println("Man");18 }19 2... 阅读全文
posted @ 2013-12-27 14:14 xpray 阅读(4863) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 int flag; 6 7 void fun(int signo) { 8 if (SIGINT == signo) { 9 printf("got SIGINT\n");10 flag++;11 }12 13 if (SIGQUIT == signo) {14 printf("got SIGQUIT\n");15 flag++;16 ... 阅读全文
posted @ 2013-12-27 10:32 xpray 阅读(722) 评论(0) 推荐(0) 编辑