Hi guys! I'm trying to make a game on c++ and I'm starting on setting an image but that image just won't show and the screen just flashes for a second and goes away~ Any help is appreciated. Thank you all.
try and add an getch or system("PAUSE") before SDL_FreeSurface(hello);
I think that the program closes because there is nothing preventing it to reach SDL_Quit;