예제 #1
0
        static void Main(string[] args)
        {
            Printdata p = new Printdata();

            p.Print(5);
            p.Print(500.263);
            p.Print("Hello c#");
        }
예제 #2
0
        static void Main(string[] args)
        {
            Printdata p = new Printdata();

            p.print(5);
            p.print(500.263);
            p.print("Hello c++");

            Console.ReadKey();
        }
예제 #3
0
        static void Main(string[] args)
        {
            Printdata p = new Printdata();

            p.print(5);
            p.print(500.263);
            p.print("Hello c++");

            Console.ReadKey();
        }
예제 #4
0
        static void Main(string[] args)
        {
            Printdata p = new Printdata();

            // Call print to print integer
            p.print(5);
            // Call print to print float
            p.print(500.263);
            // Call print to print string
            p.print("Hello C++");
            Console.ReadKey();
        }
예제 #5
0
        static void Main(string[] args)
        {
            Printdata p = new Printdata();

            // 调用 print 来打印整数
            p.print(5);
            // 调用 print 来打印浮点数
            p.print(500.263);
            // 调用 print 来打印字符串
            p.print("Hello C#");
            Console.ReadKey();
        }
예제 #6
0
        static void Main(string[] args)
        {
            Printdata p = new Printdata();

            // Call print to print integer
            p.print(9);

            // Call print to print float
            p.print(233.421);

            // Call print to print string
            p.print("String message");
            Console.ReadKey();
        }