Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

How to do a loop inside a loop

$
0
0

@aliva666 wrote:

Hi, i’m trying to make a loop inside a loop well not sure if the right way. What i’m trying to achive is to compare string in of files that are in the directory to find a match to a specific string… Code so far…

for (int i = 0; i < dir2.size(); i++){

  for(int j = 0; j < 16; j++){
    seq1 = "200" + ofToString(j);
 
if( seq1 =  dir2.getname(i)){
    cout << " same" << endl;
  }

}

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles