for (int i = 0; i < i1.count() - 1; i++) { QString string = i1[i]; if (string.contains("s_")) s_tables.push_back(string); if (string.contains("d_")) d_tables.push_back(string); }
C++ (Qt)foreach (QString str, i1) { if (str.contains("s_")) s_table << str; else d_table << str;}
C++ (Qt)foreach (QString str, i1) { if (str[0]=='s') s_table << str; else d_table << str;}
C++ (Qt)foreach (QString str, i1) { if (str[0]=='s') s_table << str; else if (str[0]=='d') d_table << str;}
for (int i = 0; i < all.count(); i++)