std::exception
std::bad_alloc
thrown by new on allocation failure.std::bad_cast
thrown by dynamic_cast when fails with a referenced type.std::bad_exception
thrown when an exception type doesn't match any catch.std::bad_typeid
thrown by typeid.std::logic_error
thrown by logic errors, represent problems in the internal logic of a program; in theory, these are preventable, and even detectable
This file contains 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 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