首页 > 其他 > 详细

函数调用

时间:2015-08-13 07:41:42      阅读:140      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!