Thursday, December 2, 2010

Arrow Code

Thanks Nihal for your first contribution on Limbeshwar's blog, and here's an abstract example ;)

if (ui->exDirChkBox->isChecked()){
    for (int j = 0; j < dirExclLst.count(); j++){
            for(int k = 0; k < dirList.count(); k++){
                QString strDrv = dirList[k].fileName();
                QString exlLstName = dirExclLst[j];
                if (strDrv == exlLstName){
                    dirList.removeAt(k);
                }else{
                //Do Nothing
                }
            }
    }
}

1 comment:

  1. yes.... i had done around 8-10 nested loops. i will try to get the code and post.

    ReplyDelete