去掉static为什么不行??
#include<iostream.h>void main()
{
static double i(7),j(5);
int fun(double a=i,double b=i+j);
int s=fun(5);
cout<<s<<endl;
}
int fun(double x,double y)
{
return int (x+y);
}
当去掉static是编译出错,是什么原因??
2006-12-16 12:35
各位大侠帮忙顶一下啊
2006-12-16 20:02