again I'm not getting what I want

I'm not getting the parameters right.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);
}
How are we supposed to know what that means?
agreed

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.

We're not mind readers.
closed account (z05DSL3A)
fire child,

Please read: http://www.cplusplus.com/forum/beginner/1/ there are some helpful tips about how to ask questions.
Topic archived. No new replies allowed.