码迷,mamicode.com
首页 > Windows程序 > 详细

【C#学习笔记】函数调用

时间:2017-08-27 16:14:18      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:oid   ace   []   sys   ring   str   pre   bsp   笔记   

using System;

namespace ConsoleApplication
{
    class Program
    {
        static int Add(int a, int b)
        {
            return a + b;
        }

        static void Main(string[] args)
        {
            int a = 1,b = 2;
            int c = Add(a, b);
            Console.Write(c);
            Console.Read();
        }      
    }
}

 

【C#学习笔记】函数调用

标签:oid   ace   []   sys   ring   str   pre   bsp   笔记   

原文地址:http://www.cnblogs.com/tiandsp/p/7440405.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!