level 4
#include <graphics.h>
#include <conio.h>
#include <stdio.h>
#include<time.h>
#include<stdlib.h>
void main()
{ initgraph(640, 480);
getch();
srand((int)time(0));
int r = rand() % 500+ 300;
char s[10];
sprintf(s, "%d", r);
outtextxy(200, 200, s);}
2013年04月08日 02点04分
1
level 6
在最后加个getch();试试……可能是那个绘图窗口运行后直接关闭了……
2013年04月08日 04点04分
3
嗯呢。。已经解决了,谢谢啦。。
2013年04月08日 06点04分