| 查看: 1560 | 回复: 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 ] |
» 猜你喜欢
售SCI文章,我:8O.5.5.1O.54,科目全,可十急
已经有4人回复
售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急
已经有4人回复
售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急
已经有4人回复
售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急
已经有4人回复
售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急
已经有3人回复
售SCI文章,我:8O.5.5.1O.54,科目全,可十急
已经有3人回复
售一区SCI文章T0P,我:8O.551.O54,科目全,可十急
已经有3人回复
售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急
已经有4人回复
售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急
已经有3人回复
售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急
已经有3人回复
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
回复













回复此楼