class Text
{
public void A(double r, out double c)
{
c = 2 * Math.PI * r;
double s = Math.PI * Math.Pow(r, 2);
}
}
class Program
{
static void Main(string[] args)
{
//高手们帮帮忙啊!感激不尽。
}
}
c的数据类型是double的。还要先实例化text类。
谢谢楼主啊。
class Program
{
static void Main(string[] args)
{
Text t = new Text();
double c;
t.A(2d, out c);
Console.Write(c);
Console.Read();
我实现了,我还以为不能实现呢。
感激!!!
不懂2d