コード例 #1
0
ファイル: Program.cs プロジェクト: sngf/learningcsharp
 static void Main()
 {
     Calc c = new Calc();
     int ans = c.Add(23,14);
     Console.WriteLine("23 + 14 равно {0}.", ans);
     // Ожидание <Enter>
     Console.ReadLine();
 }
コード例 #2
0
        static void Main(string[] args)
        {
            Calc c   = new Calc();
            int  ans = c.Add(5, 1);

            Console.WriteLine("5 + 1 is {0}.", ans);
            Console.ReadLine();
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: MrBiggins/Home
        private static void Main(string[] args)
        {
            var c   = new Calc();
            var ans = c.Add(10, 84);

            Console.WriteLine("10 + 84 is {0}.", ans);
            Console.ReadLine();
        }
コード例 #4
0
ファイル: Calc.cs プロジェクト: book-reading/pro-csharp-7
        public static void Main()
        {
            Calc c   = new Calc();
            int  ans = c.Add(10, 84);

            Console.WriteLine("10 + 84 is {0}.", ans);
            Console.ReadLine();
        }
コード例 #5
0
ファイル: CalculatorExample.cs プロジェクト: Burrypony/dotNet
static void Main()
{
Calc c = new Calc () ;
int ans = c.Add(10, 84);
Console.WriteLine("10 + 84 is {0}.”, ans);
// Ожидать нажатия пользователем клавиши <Enter> перед завершением работы.
Console.ReadLine();
}
コード例 #6
0
ファイル: Calc.cs プロジェクト: walrus7521/code
 static void Main()
 {
     Calc c = new Calc();
     int ans = c.Add(10, 84);
     Console.WriteLine("10 + 84 is {0}.", ans);
     Console.ReadLine();
     MessageBox.Show("Hello...");
 }
コード例 #7
0
        static void Main(string[] args)
        {
            Calc c   = new Calc();
            int  ans = c.Add(10, 84);

            Console.WriteLine("10 + 84 is {0}", ans);
            //  Wait for the user to press the Enter key before shutting down.
            Console.ReadLine();
        }
コード例 #8
0
        static void Main(string[] args)
        {
            Calc c   = new Calc();
            int  ans = c.Add(10, 84);

            Console.WriteLine("10 + 84 is {0}.", ans);
            // Ожидать нажатия пользователем клавиши <Enter> перед выходом.
            Console.ReadLine();
        }
コード例 #9
0
        static void Main()
        {
            Calc c   = new Calc();
            int  ans = c.Add(10, 84);

            Console.WriteLine("10 + 84 is {0}", ans);
            //wait for user to press enter before shutting down
            Console.ReadLine();
        }
コード例 #10
0
ファイル: Calc.cs プロジェクト: kingfree/haut
        static void Main()
        {
            Calc c = new Calc();
            int ans = c.Add(10, 84);
            Console.WriteLine("10 + 84 = {0}.", ans);

            // �ȴ��û�����س�����������
            Console.ReadLine();
        }