wordpress   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了_056_根据年份判断十二生肖大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; //在控制台应用程序中调用messageBox函数需要在资源管理中引用system.windows.forms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
//在控制台应用程序中调用messageBox函数需要在资源管理中引用system.windows.forms;
using System.Windows.Forms; namespace _056_根据年份判断十二生肖 { class Program { static void Main(String[] args) { System.Globalization.ChineseLunisolarCalendar chineseCaleander =new System.Globalization.ChineseLunisolarCalendar(); String TreeYear = @H_262_71@"@H_262_71@鸡狗猪鼠牛虎兔龙蛇马羊猴@H_262_71@"; //String TreeYear = "鼠牛虎兔龙蛇马羊猴鸡狗猪";
       //此处两种方法,一种方法是采用chineseCaleander类进行计算,另一种直接除以12取余,如果余数为1则为鸡年,依次类推
//int intYear = chineseCaleander.GetSexagenaryYear(datetiR_580_11845@e.Now); int intYear = datetiR_580_11845@e.Now.Year % 12; String Tree = TreeYear.SubString(chineseCaleander.GetTerreStrialBranch(intYear) - 1,1); Console.WriteLine(@H_262_71@"@H_262_71@今年是十二生肖@H_262_71@" + Tree + @H_262_71@"@H_262_71@年@H_262_71@"); messageBox.Show(@H_262_71@"@H_262_71@今年是十二生肖@H_262_71@" + Tree + @H_262_71@"@H_262_71@年@H_262_71@",@H_262_71@"@H_262_71@判断十二生肖@H_262_71@",messageBoxButtons.OK,messageBoxIcon.Information); } } }

大佬总结

以上是大佬教程为你收集整理的_056_根据年份判断十二生肖全部内容,希望文章能够帮你解决_056_根据年份判断十二生肖所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。