[bo]以下是引用 [un]sunkaidong[/un] 在 2008-4-6 10:51 的发言:[/bo]
class zy01 {
public static double a=2.0;
public static double b=3.0;
public zy01() {
}
public static double squ (double x,double y)
{
double s;
s=x*y;
...
class zy01 {
public static double a=2.0;
public static double b=3.0;
public zy01() {
}
public static double squ (double x,double y)
{
double s;
s=x*y;
...
请问为什么加个static就好了呢? 麻烦您解释的稍微详细点 谢谢!
编程学习中~~