Search:

Type: Posts; User: angstrem

Search: Search took 0.18 seconds.

  1. Replies
    3
    Views
    1,666

    Re: Intersection of two loops

    Inside the "for" loop, organize another loop for reading the database. For each read element, check whether specified condition (in your case, i == element) is true. If it is true, continue the for...
  2. Replies
    3
    Views
    1,666

    Re: Intersection of two loops

    while(database input has elements) {
    read the element;
    if (i == element) contunue mainLoop;
    }

    Of course, the for should be labeled with mainLoop label then.
Results 1 to 2 of 2