c#星期二讲解题

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        //要求1+1=?
        //要求整数+整数=?
        static void Main(string[] args)
        {

            Console.WriteLine(Add(1, 2));
        }

        private static int Add(int a, int b)
        {
            return a + b;
        }
    }
}
程序就是把相同的地方提取出来和不同的地方分别提取出来

posted on 2011-10-18 09:58  叮铛猫  阅读(149)  评论(0)    收藏  举报

导航