Fortune Telling Collection - Horoscope - How to use C language for 12 constellation?
How to use C language for 12 constellation?
Month a[0]∈[ 1, 12], a[ 1], that is, the date is determined according to a[0], and a[0] is 2, 4, 6, 9,1/kloc-0.
When a[0] is 2, a[ 1] cannot exceed 29. If you enter 29, you need to subtract 1 (as the basis for constellation calculation of later date difference).
2) The first function, int sum_day (int* a), takes the input just now as a formal parameter, calculates that M days of n months are K days of this year according to a certain formula, and then returns this date.
3) Because every constellation is 30 days apart (according to February 28th). Let's assume that this number of days is returned by K, and then discuss it by category.
The first one, K.
The second switch ((k- 19)/30) {
Case 0: Water bottle
Case 1: Pisces
........
- Related articles
- Synonym of jade
- The most difficult constellation so far _ The most difficult constellation girl so far
- Constellation popular market _ Constellation popular market
- Are you one of the three zodiac signs that will lose every bet on 20 18?
- Who is the actor of Pig Bajie?
- China 12 constellation monthly table
- What is the constellation of September 8 1993?
- What constellation is March 14?
- Tao Bobo said that cancer replication, the following text description in Tik Tok does not show all the pictures.
- Favorite Aries constellation