sprintf()的用法?
#include<stdio.h>#include<graphics.h>
main()
{
int gdriver=DETECT,gmode;
char c='a',s[20];
inigraph(&gdriver,&gmode,"c:\\turboc2");
setbkcolor(7);
setcolor(4);
settextstyle(1,0,2);
sprintf(s,"%c",c); /*没有输出*/
getch();
closegraph();
}