帮我看看这个程序为嘛没有运行出结果吧。。。。。。。
easyx吧
全部回复
仅看楼主
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 11
什么编译器?
2013年04月08日 03点04分 2
c++6.0的
2013年04月08日 06点04分
level 6
在最后加个getch();试试……可能是那个绘图窗口运行后直接关闭了……
2013年04月08日 04点04分 3
嗯呢。。已经解决了,谢谢啦。。
2013年04月08日 06点04分
1