| 查看: 608 | 回复: 5 | |||
| 当前主题已经存档。 | |||
[交流]
【求助】求教哈工大《计算物理学》中一程序的graphics.h文件
|
|||
|
本人想编一个简谐振动实验的模拟程序,按照哈工大《计算物理学》上的程序: #include #include #include #include main() { int graphdrv=VGA; int graphmode=VGAHI; int a=150,t=0,x=200,u=20,N=1000,y,r=4,i; float w=0.05,f=0.8; initgraph(&graphdrv,&graphmode,"\\tc\\bgi" ;for(t=0;t<=N;t++) { for(t=0;i<=100;i++)line(x,u,x,100); y=a*cos(w*t+f)+250; cleardevice(); line(x-50,u,x+50,u); for(i=0;i<=4;i++) { line(x+10*i,u,x+10*i+10,u-10); line(x-10*i-10,u,x-10*i,u-10); } line(x,u,xy); line(x+1,u,x+1,y); line(x-1,u,x-1,y); circle(x,y,r-1); circle(x,y,r-2); circle(x,y,r); } while(!kbhit()); closegraph(); } 运行后提示:fatal error C1083: Cannot open include file: 'graphics.h': No such file or directory 请各位高手帮忙解决! |
» 猜你喜欢
2026年申博-电池方向
已经有4人回复
2026年博士申请求捞
已经有5人回复
26年博士申请自荐-电催化
已经有9人回复
申博自荐
已经有9人回复
研究生做的很差,你们会让毕业吗?
已经有11人回复
求碳排放博导;方向是LCA、生命周期可持续发展以及碳排放
已经有7人回复
2026博士申请求助
已经有4人回复
2026博士或科研助理转27年博士
已经有7人回复
急招2026年9月份入学博士
已经有3人回复
国自科送审了吗
已经有11人回复

2楼2009-04-04 16:55:58
jianchaoyv
金虫 (小有名气)
| 顶 ! |
3楼2009-04-05 09:16:29
hbxfmjh
至尊木虫 (初入文坛)
- 应助: 1 (幼儿园)
- 金币: 10842.2
- 红花: 1
- 帖子: 29
- 在线: 337.9小时
- 虫号: 143586
- 注册: 2005-12-22
- 性别: GG
- 专业: 数学物理
4楼2009-08-01 06:58:41
5楼2010-01-21 20:32:44
6楼2010-02-01 21:10:13












;
回复此楼
