嗨,任何人都可以帮我用c#console做日历 [英] Hi can any one help me to do a calendar using c# console
本文介绍了嗨,任何人都可以帮我用c#console做日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您可以帮助我使用c#console创建日历,在日历之后我可以保存事件。只是给我一个主意。这将是一个很大的帮助。
Hi can anyone help me to create a calendar using c# console and after the calendar i can save events. just give me an idea. it would be a big help.
推荐答案
这并不复杂。
决定你开始的一周工作日:
It's not complicated.
Decide on your start-of-week day:
S M T W T F S
或
Or
M T W T F S S
例如。
然后,计算当月1日的星期几。
您想要空格条目直到你到达那里:
For example.
Then, work out the day of week for the 1st of the month.
You want to space entries until you get to there:
S M T W T F S
1 2 3 4 5
...
然后开始打印7个小组中的数字越来越多。
如果你停下来想一想,每次都把它分解成更小的任务,那就很简单了。
Then just start printing increasing numbers in groups of 7.
If you stop and think about it, and break it down into smaller tasks each time, it's pretty simple.
这篇关于嗨,任何人都可以帮我用c#console做日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文