Console.ReadLine();

来源:百度知道 编辑:UC知道 时间:2024/05/02 18:39:27
using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication2
{
class Program
{
int number;
public void Square(int number)
{
Console.WriteLine(number);
number *= number;
Console.WriteLine(number);
}
Program()
{
number=10;
Square(number);
}

static void Main(string[] args)
{
Program cal=new Program();
Console.ReadLine();
}
}
}
Console.ReadLine();加上去何用.
why?

如果不加的话,那么程序即将一闪而过!

加了他的话你就可以看见程序运行的结果!

你删掉试试看!

你可以自己试试看阿!

如果你非要为:

because : microsoft role