| 查看: 1534 | 回复: 6 | |||
[交流]
【求助】请高手指点一下vc++的一部分程序,看看哪有错误,急急。。。。。。。。。。
|
|||
|
高手帮我看一下,这个程序片段哪有错啊! void COper::CalculateObjectValue () { int i,j,k,l; long temp; long temp1,temp2,temp3,temp4; double x1,x2,x3,x4; for(i=0;i temp1=DecodeChromosome(population.chrom,0,LENGTH1); temp2=DecodeChromosome(population[j].chrom,0,LENGTH2); temp3=DecodeChromosome(population[k].chrom,0,LENGTH3); temp4=DecodeChromosome(population[l].chrom,0,LENGTH4); x1=0.247*temp1/31.0+0.03; x2=0.155*temp2/31.0+0.03; x3=0.124*temp3/31.0+0.01; x4=0.205*temp4/31.0+0.045; if((x1*x3)/(x2*x4)==0.52) { temp=32625.5*(x3*x3-x1*x1)*sqrt*(x1)*pow(x4,1.75)*PI; temp=temp*(0.0000316*(0.11*pow(x3,1.5)+pow(x1,1.5))+0.00028125*x3*pow(x1,2.5)+0.29*pow(x1,4.5)*x3); temp=temp/sqrt(cos(2*PI*x3*pow(x1,0.5)/pow(0.075,0.5))); temp=temp/tan(PI*x1/(2*x4)); temp=temp/pow(x3,0.5); temp=temp/(0.11*pow(x3,1.5)+pow(x1,1.5)); temp=temp/(pow(x3,3)+0.018*x1*x4*x4-1.12*x1*x1*x4+4.736*x1*x1*x1); population.value=temp; } } } } } } [ Last edited by 余泽成 on 2011-2-27 at 14:52 ] |
» 猜你喜欢
面上没中,邀请各位路过的虫友分析一下分数
已经有15人回复
博士去二本高校当辅导员,如何调整心态?
已经有10人回复
面上有专家说实验设备不是我们单位的
已经有6人回复
27细胞生物学申博
已经有5人回复
江苏省自然基金 什么时候出结果
已经有6人回复
广西大学-广州大学招聘博士后 欢迎广大优秀人才!!!
已经有11人回复
闲聊
已经有3人回复
两块石头
已经有10人回复
售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急
已经有15人回复
初秋的晨风
已经有6人回复
2楼2011-02-10 20:21:08
3楼2011-02-10 22:19:50
4楼2011-02-15 11:04:22
5楼2011-02-15 19:13:41
7楼2011-02-22 16:34:34
简单回复
2011-02-15 20:15
回复













回复此楼