正在加载图片...
CPE P383 9/* Sum vector of n elements (n must be even)*/ 10 void vsum2 (int n) 11{ 12 int i 13 14 for(主=0;i<n;i+=2){ 15 /* Compute two elements per iteration * 16 cli= ali] bli] 17 c[i+1]=a[i+1]+b[i+1]; 18 19}9 CPE P383 9 /* Sum vector of n elements (n must be even) */ 10 void vsum2(int n) 11 { 12 int i; 13 14 for (i = 0; i < n; i+=2) { 15 /* Compute two elements per iteration */ 16 c[i] = a[i] + b[i]; 17 c[i+1] = a[i+1] + b[i+1]; 18 } 19 }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有