Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Window::on_pushButtonRun_clicked()
- {
- {
- QStringList qListZeros, qListOnes, qListMax;
- QString qStrOut;
- qStrOut.clear();
- qStrOut.append("For string number "+QString::number(currentStringNum+1)+"\n");
- qStrOut.append("the group with maximum length is: ");
- qListZeros = qstrSolve.split("1");
- qListOnes = qstrSolve.split("0");
- qListZeros.sort();
- qListOnes.sort();
- qListMax.append(qListZeros.last());
- qListMax.append(qListOnes.last());
- qListMax.sort();
- qStrOut.append(qListMax.last()+"\n");
- ui->textEditResults->append(qStrOut);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement