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

函数调用

时间:2015-08-12 23:09:54      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:

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

namespace 函数__有无返回值
{
    class Program
    {
        struct Student
        {
            public struct chengj

            {
                public double shuxue;
                public double yuwen;
            }


            public string Name;
            public int Age;
            public double Chengj;
            //public string[] SZ;


            static void Out()
            {
                Console.WriteLine("我是函数");
            
            }
            static void Out(string name)
            {
                Console.WriteLine("函数"+name);
            }
             

           

                }



        static void Main(string[] args)
        {
           


            Student stu = new Student();
            stu.Name = "王二麻子";
            stu.Age = 20;
            stu.Chengj = 85;



            Console.WriteLine("学生成绩名单:" + "姓名:" + stu.Name +" "+ "年龄:" + stu.Age+" "+ "成绩:" + stu.Chengj);
            Console.ReadLine();
        }


        
    }
}

意思懂了  但是做不出来  各种报错~~

函数调用

标签:

原文地址:http://www.cnblogs.com/xubin-747/p/4725773.html

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