std::exceptionstd::bad_allocthrown by new on allocation failure.std::bad_castthrown by dynamic_cast when fails with a referenced type.std::bad_exceptionthrown when an exception type doesn't match any catch.std::bad_typeidthrown by typeid.std::logic_errorthrown by logic errors, represent problems in the internal logic of a program; in theory, these are preventable, and even detectable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pygame | |
| class Time(object): | |
| def __init__(self, uiTimeStep): | |
| "Takes the time step in milliseconds as argument." | |
| self.uiTimeStep = uiTimeStep | |
| self.uiNewTime = 0 | |
| self.uiCurrentTime = 0 | |
| self.uiTimeAccumulator = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Load in IPython and use as transfer rate | |
| # and storage capacity calculator. | |
| bytes = 8 | |
| bits = 24 | |
| width = 1280 | |
| height = 720 | |
| fps = 24 |
NewerOlder