easy question
I have a simple code as following
// :c03:Assignment.cs
class Number
{
public int i;
}
public class Assignment
{
public static void Main()
{
Number n1 = new Number();
Number n2 = new Number();
n1.i = 9;
n2.i = 47;
System.Console.WriteLine("1: n1.i: " +n1.i + ", n2.i: " + n2.i);
n1.i = n2.i;
System.Console.WriteLine("2: n1.i: " +n1.i + ", n2.i: " + n2.i);
n1.i = 27;
System.Console.WriteLine("3: n1.i: " +n1.i + ", n2.i: " + n2.i);
}
}
when I compiled and ran the exe file I just saw a flash and that was it. How can I make the dos windows to stay that I can see the result? Please help this beginner!
|