2014年2月26日

CSS设计中父元素包围其浮动的子程序

摘要: 父元素包围其浮动的子程序有三种方式:以下面的HTML为例 It's fun to float. Here is the footer element that runs across the bottom of the page.CSS:section{border:1px solid;margin:0 0 10px 0;}footer{border:1px solid red;}添加浮动:section {border:1px solid blue; margin:0 0 10px 0;} img {float:left;} footer {border:1px solid red. 阅读全文

posted @ 2014-02-26 17:05 wsdwdwf 阅读(355) 评论(0) 推荐(0)

2014年1月22日

java数组类型参数传递

摘要: java 中将实参传递给方法时,传递基本数据类型和传递数组类型将有很大差别。如下例:public class Test{ public static void main(String[] args){ int a1=1; int[] a2=new int[10]; m(a1,a2); System.out.println("a1 is:"+a1); System.out.println("a2[0] is:"+a2[0]);} public static void m(int x,int[] y){ x=2;y[0]=1000;} }我们将会看到,在调用 阅读全文

posted @ 2014-01-22 10:04 wsdwdwf 阅读(1105) 评论(0) 推荐(0)

2014年1月17日

通过值传递(pass by value)

摘要: 当调用带参数的方法时,实参的值传递给形参,这个过程称为通过值传递。但是如果实参是变量而不是直接量,则将该变量的值传递给形参。无论形参在方法中是否改变,该变量不会受到影响。 1 public class Increment{ 2 public static void main(String[] args){ 3 int x=1; 4 System.out.println("Before the call,x is"+x); 5 increment(x); 6 System.out.println("After the call,x is"+x); 7 } 阅读全文

posted @ 2014-01-17 09:19 wsdwdwf 阅读(195) 评论(0) 推荐(0)

2013年7月18日

sql 普通练习

摘要: 1 alter proc pr_ck80 2 as 3 select sname from student where sage between 23 and 33 4 exec pr_ck80 5 --创建一个存储过程,查看哪些学生是80后 6 alter proc pr_ckc 7 @cno varchar(10) 8 as 9 select sname from student inner join score on student.sno=score.sno 10 where cno=@cno11 exec pr_ckc '3-245'12 --创建一个存储过程,给定课 阅读全文

posted @ 2013-07-18 17:33 wsdwdwf 阅读(211) 评论(0) 推荐(0)

导航