Welcome![Sign In][Sign Up]
Location:
Search - timeconve

Search list

[OtherTimeConvert

Description: 将数字时间转换为英语口语表达形式,控制台形式。其实核心代码为一个类,可以自己修改输出形式。 比如输入 8 15 10 45 5 30 2 20 2 40 0 0 就能转换为: It s twenty past eight It s a quarter past eight It s a quarter to eleven It s half past five It s twenty past two It s twenty to three 注意: 输入 0 0 后结束并显示结果 方式为每行两个数,中间用空格空开 第一个数0到12表示小时,第二个数0到59表示分钟 -Will be converted to digital time Spoken English expressions, the form of the console. In fact, the core code for a class, you can modify its own output format. For example, enter 8 1510 455 302 202 400 0 will be able to convert: It s twenty past eightIt sa quarter past eightIt sa quarter to elevenIt s half past fiveIt s twenty past twoIt s twenty to three Note: Enter 0 0 after the end of the way and the result will be displayed two for each line the number of empty spaces in the middle with the first opening, said the number of 0-12 hours, the second number of said 0-59 minutes
Platform: | Size: 19456 | Author: 熊焰 | Hits:

CodeBus www.codebus.net