#include"graphics.h"
#include"conio.h"
void showScore(int score)
{
settextstyle(0,0,"宋体");
char s1[20]="SCORE: ";
char s2[5];
_itoa_s(score,s2,10);
strcat_s(s1,s2);
setbkmode(TRANSPARENT);
outtextxy(10,10,s1);
setbkmode(OPAQUE);
}
void main()
{
initgraph(400,400);
showScore(22);//在屏幕上输出个22
_getch();
closegraph();
}