Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "display.hpp"
- struct game {
- protected:
- display* Display;
- };
- struct monkeycard: public game {
- public:
- void messagebox(std::string);
- };
- void monkeycard::messagebox(std::string text) {
- SDL_Surface* t= Display->render_text(text);
- int z= 100;
- Display->blit_image(t,z,100);
- }
- int main() {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement