Good morning guys,
I have a StringList formed by a set of information coming from a query, example:
Each QString formed by “code, ip, location, date”
“1586; 190.150.60.158; C: \ \ Users \ \ IT; 21/02/2013 15:07:37.848”
“1611; 190.160.60.158; 168.6.33 \ \ TI2; 21/02/2013 16:05:39.585”
“1578; 190.168.70.159; C: \ \ Users \ \ IT \ \ Desktop \ \; 02/21/2013 14:57:53.967”
.
.
.
So I’m trying to go through the list and identify which IPs are repeated, and repeated these, should I just stay with the one that has the greatest code in the list.
Just an idea of what I’m trying to do now, but without success =)
for (int i = 0; i <removeRepetido.size (); i + +) {
= removeRepetido.value current (i). split (","). at (1);
if (current == removeRepetido.value (i +1). split (";"). at (1)) {
qDebug () << "will be?" RemoveRepetido.value << (i). Split (";"). At (1) << "CURRENT" << current;
}
}
↧