void main() { int r,c,a[5][5],j,i; clrscr(); printf("Enter the order of the matrix\n"); scanf("%d%d",&r,&c); printf("enter the elements of the matrix\n"); for(i=0;i<r;i++) for(j=0;j<c;j++) scanf("%d",&a[i][j]); printf("input matrix is\n"); for(i=0;i<r;i++) { for(j=0;j<c;j++) printf ("%d\t",a[i][j]); printf("\n"); } sumr(r,c,a); sumc(r,c,a); getch(); }
SumType sum_vertices(std::string base_filename, vid_t fromv, vid_t tov) { SumCallback<VertexDataType, SumType> sumc(0); foreach_vertices<VertexDataType>(base_filename, fromv, tov, sumc); return sumc.accum; }