标题:帮忙纠正错误
只看楼主
qwhjyu
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2012-3-12
 问题点数:0 回复次数:0 
帮忙纠正错误
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 日期
{
    class CDate
    {
        int year, month, day;
        public int y
        {
            get
            {
                return year;
            }
            set
            {
                year = value;
            }
        }
        public int m
        {
            get
            {
                return month;
            }
            set
            {
                month = value;
            }
        }
        public int d
        {
            get
            {
                return day;
            }
            set
            {
                day = value;
            }
        }
        public void Input_Date()
        {
        }
        public string Output_Date()
        {
            return y + m + d;
        }
    }
class Program
    {
        static void Main(string[] args)
        {
            CDate s=new CDate();
            Console.WriteLine("请输入日期:{0}",s.Input_Date());
        }
    }
}
搜索更多相关主题的帖子: class public return 
2012-03-12 19:48



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-362941-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.430640 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved