我是新手,请问各位大虾:我按书本上的例子如下:(文件test.cs)
using System;
using System.Collections.Generic;
using System.Text;
using MyMethods;
using MyShow;
class MyClient
{
public static void Main()
{
Show hi = new Show();
Console.WriteLine(hi.Messages());
Console.Write("请输入:n1=");
int n1 = Int32.Parse(Console.ReadLine());
Console.Write("请输入:n2=");
int n2 = Int32.Parse(Console.ReadLine());
long sum = AMClass.Add(n1, n2);
long product = AMClass.Mul(n1, n2);
Console.WriteLine("{0}和{1}的和为:{2}",n1,n2,sum);
Console.WriteLine("{0}和{1}的积为:{2}", n1, n2, product);
}
}
然后用csc /out:test.exe /reference:mylibrary.dll test.cs ...........(mylibrary.dll已经生成了)
编译后生成test.exe,双击test.exe,输入两个数按回车后不到一秒钟程序就看消失了,看不到结果,我想问一下怎么才能让程序运行的屏幕停下来可以看到结果.还有,想问一下那个visual studio.net 2005中怎么把上面的那个文件编译成.exe程序,我试过只能编译成.dll文件的.问题可能很简单,会耽误大家的时间,在此表示歉意,谢谢大家.