第三章第三十题(当前时间)(Current time)
生活随笔
收集整理的這篇文章主要介紹了
第三章第三十题(当前时间)(Current time)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
第三章第三十題(當前時間)(Current time)
-
*3.30(當前時間)修改編程練習題2.8,以12小時時鐘制顯示小時數。
下面是一個運行示例:
Enter the time zone offset to GMT:-5
The current time is 4:50:34 AM*3.30(Current time) Revise Programming Exercise 2.8 to display the hour using a 12-hour clock.
Here is a sample run:
Enter the time zone offset to GMT:-5
The current time is 4:50:34 AM -
參考代碼:
- 結果顯示:
總結
以上是生活随笔為你收集整理的第三章第三十题(当前时间)(Current time)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 设计模式:Mogwai或Gremlins
- 下一篇: VC2017调试