if (q <= height && t <= length)// height and length are size of grid
{
h = 0;
i = 0;
do{
g = Long + 1 + i;
b = i;
d = b + 1;
a = 0;
do{
e = High + 1 + h;
a = h;
c = e + 1;
alpha = pow (c,2.0);
beta = pow (d,2.0);
add = alpha + beta;
radius = sqrt(add);
// radius of circle
if (radius <= hop && e < height + 1 && g < length + 1)
if(grid[High][Long] == s && grid[e][g] == s)
{ // find all points that apply
d = g + 1;
c = e + 1;
cout << "ur(" << d << "," << c << "), ";
}
h = h + 1;
}while (radius <= hop);
i = i + 1;
}while (b <= length);
}
single letter undecriptive variable names, no context, no mention of what the code is trying to accomplish, no mention of what is going wrong, no comments.