摘要: #include"iostream.h"double calarea(double *x,double *y,int N){ double sum=0; for(int i=0;i<N;i++) {if(i<N-1) sum+=x[i]*y[i+1]-x[i+1]*y[i]; else sum+=x[i]*y[0]-x[0]*y[i]; cout<<"sum中间数据:"&... 阅读全文
posted @ 2009-09-28 11:22 电电儿 阅读(641) 评论(0) 推荐(0) 编辑