在Mvc4 C#中我需要每年产生学术时期 [英] In Mvc4 C# I Need To Generate The Academic Period Yearwise
本文介绍了在Mvc4 C#中我需要每年产生学术时期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在MVC4中,我需要逐年产生学术期
,例如:
年度期限如下:
2015-2016
2016-2017
2017-2018
如何为这些年代生成代码。如何获得当前年份并添加第二年
请帮我
In MVC4 c# i need to generate the academic period yearwise
for eg:
the year period is given below
2015-2016
2016-2017
2017-2018
how to generate the code for these years.Means how to get the current year and add the the next year
pls help me
推荐答案
您希望我们教您如何在数字中添加一个?
You want us to teach you how to add one to a number?
int year = 2015;
int nextYear = year + 1;
请在尝试任何实际项目或提问之前至少学习编程语言的基础知识,论坛不是从头学习东西的好地方。
Please at least learn the basics of a programming language before attempting any real projects or asking questions, a forum is not a good place to learn something from scratch.
这篇关于在Mvc4 C#中我需要每年产生学术时期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文