SDL_Rect score_one;
score_one.x = 800;
score_one.y = 600;
int score = 0;
char buffer[50];
sprintf_s(buffer, "%d", score);
SDL_Surface* screen=NULL;
SDL_Surface* surface=NULL;
SDL_Color textColor = { 255, 255, 255, 0 };
surface = TTF_RenderText_Solid(font, buffer, textColor);
SDL_BlitSurface(surface, NULL, gScreenSurface, &score_one);
Prev 1 2enter code here