本人编写的c++程序,请高手帮忙看一下,编译无误,可是不能运行
<P># include <iostream.h><br># include <math.h><br># include "WASPCN.h" //在附件里此头文件.和该文件的lib文件<br>void main()<br>{<br>int n=99,i,range;<br>double h,tm;<br>cout<<"请输入步长h和tm\n";<br>cin>>h>>"\n">>tm;<br>double ps,hs,dhs,hst,Ts,dts,Ms,dms;<br>double k=4.3715,v=2.04,cp=4.1901,Au=340,rs=0.4615;<br>//初始化//<br>ps=4.2;Ts=256.0;<br>Ms=20.8;hs=2796.5;<br>range=0;<br>for(i=1;i<n;i++)<br>{<br>//ms//<br>P2HL(ps,hst,range);//饱和水焓值//<br>dms=-k*Au*(Ts-tm)/(hs-hst);<br>Ms=Ms+dms*h;<br>//han//<br>dhs=(Ms*hs-dms*(hs-hst))/Ms;<br>hs=hs+dhs*h;<br>//wendu//<br>dts=(Ms*hs-Ms*hs+k*Au*(Ts-tm))/Ms/cp;<br>Ts=Ts+dts*h;<br>ps=ps+dms*rs*Ts/v+Ms*rs*dts/v;<br>//ditui//<br>Ms=Ms;<br>hs=hs;<br>Ts=Ts;<br>ps=ps;<br>cout<<Ms<<"\n";<br>cout<<hs<<"\n"<<endl;<br>cout<<Ts<<"\n";<br>}<br>}<br><br>WASPCN.h" //在附件里此头文件.和该文件的lib文件<br></P>打开附件<br>错误:zhengqi.exe(.exe是我编译程序时起的名字)遇到问题要关闭。我们对此引起的不便表示抱歉。<br>如果您正处于进程当中,信息可能丢失。<br>关于此错识的其他信息,请单击此处<br>调试(B) 关闭(C)<br>[此贴子已经被作者于2006-6-9 16:42:07编辑过]
[ 本帖最后由 happyman 于 2006-12-23 12:23 编辑 ]
页:
[1]