码迷,mamicode.com
首页 > 其他好文 > 详细

函数调用

时间:2015-08-13 07:42:29      阅读:125      评论:0      收藏:0      [点我收藏+]

标签:

using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void i()//没有返回值,没有参数 { Console.WriteLine("a"); } static void x(string b) //没有返回值有参数 { Console.WriteLine(b); } static int y() //有返回值,没有参数 { return 125433 ; } static int z(string d)//有返回值有参数 { Console.WriteLine(d); return 100; } static void Main(string[] args) { Console.WriteLine("请输入"); string l = Console.ReadLine(); x(l); int j=y(); Console.WriteLine("返回值为" +j); int i = z("d"); Console.WriteLine("返回值为" + i); Console.ReadLine(); } } }

函数调用

标签:

原文地址:http://www.cnblogs.com/zxm1002/p/4726044.html

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