Nautical bell: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (→{{header|C}}: Mark incorrect) |
|||
Line 143: | Line 143: | ||
=={{header|C}}== |
=={{header|C}}== |
||
{{incorrect|C|A nautical bell ''never'' sounds more than eight times. The number of chimes indicate how many half-hour increments have passed on a four hour 'watch'.}} |
|||
Sounds the bell once every half hour (12:30, 1:30 etc.) and for as many times on the hour (12 times on 12 PM/AM, 3 times on 3 AM/PM etc.) |
Sounds the bell once every half hour (12:30, 1:30 etc.) and for as many times on the hour (12 times on 12 PM/AM, 3 times on 3 AM/PM etc.) |
||
<lang C> |
<lang C> |
||
Line 183: | Line 186: | ||
} |
} |
||
</lang> |
</lang> |
||
=={{header|C++}}== |
=={{header|C++}}== |
||
This version uses local time. |
This version uses local time. |