在vs2008运行环境下,控制台程序运行时,结果窗口跳出就立即消失了
using System;using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
}
}
class contact
{
int age;
void F()
{ age = 18; System.Console.WriteLine(age); Console.Read(); }
void G()
{int age;
age=12;
System.Console.WriteLine(age); Console.Read();
}
}}