Fortune Telling Collection - Zodiac Guide - Constellation code open source _ constellation code js
Constellation code open source _ constellation code js
Constellation code open source
Create enumeration
Constellation //enum constellation {}
Write the name of 12 constellation with {}.
Create a class
Build an array of classes
Store the information of 12 constellation respectively.
Put a constellation in the class
Start date of the stone break//Example: 0220
End date int Shu Jie // 032 1
……
//Other functions
Code:
First, judge which constellation the entered date belongs to.
Then print out the information in class.
You can do it yourself.
Exercise yourself.
You can format the date.
From 0 10 1 to 123 1
int riQi
For example, enter 0228.
It means February 28th.
Use the if statement if(riQi & gt;; Shikai & Japanese weather < = Shu Jie)
- Related articles
- What constellation does Capricorn hate most?
- Constellation is the richest _ constellation is the richest?
- Who in the twelve constellations has the worst psychological endurance and can't stand setbacks?
- Influence of Gaussian noise on constellation diagram
- Where is Bai Tao from?
- What constellation is the sixth day of I986?
- Wang's name is meaningful. What about the name Wang?
- How to treat two mismatched constellations in the constellation?
- Who can help me analyze my horoscope? thank you
- About the exclusive racing car of the twelve constellations _ Animation about the exclusive racing car of the twelve constellations