函数调用

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();
        }


        
    }
}

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

posted @ 2015-08-12 22:31  地狱猫  阅读(128)  评论(0编辑  收藏  举报