does c++ have subroutines? if so, whats the basic coding for them? and how do i make very simle graphics in c++, such as sprites? thx