I have writtern some code but apparently i have not initalised two parts of it, now to my knowledgde i have and i can not see why it is showing warnings for it. i hope you can help.
double m, l, dm, dc, xsq, D;
W_line_Sum(line ,t);
W_line sums;
D = (( sums.w * sums.xx) -( pow(sums.x,2)));
m = ((sums.w) * sums.xy) - (sums.x*sums.y) / D;
dm = sqrt( sums.w/D ) ;
l = ((sums.y* sums.xx) - (sums.x * sums.xy)) / D;
dc = sqrt(sums.xx /D ) ;
xsq = sums.v2;
void W_line_Sum(W_line* a, int t){
W_line sums;
for (int i=0; t<b; ++i){
sums.x+= a[i].x;
sums.y+=a[i].y;
sums.xx+=a[i].xx;
sums.xy+=a[i].xy;
sums.w+=a[i].w;
sums.xw+=a[i].w*a[i].x;
}
}
for both of these bits the warning that is popping up is this;
warning C4700: uninitialized local variable 'sums' used