sprintf2.c
来自「vc library 韩国语版 希望对大家又帮助」· C语言 代码 · 共 17 行
C
17 行
#include <stdio.h>
#include <graphics.h>
#include <conio.h>
void main()
{
int gd=0,gm;
float f;
char str[128];
f=3.141592;
initgraph(&gd,&gm,"");
sprintf(str,"pie is %f",f);
settextstyle(1,0,4);
outtextxy(50,50,str);
getch();
closegraph();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?