今天写程序,如下:
[cpp]
set<CmdTask>::iterator itr = tasks.begin();
while (itr != tasks.end()) {
//找pid相同的
if (itr->pid == pid) {
break;
}
itr++;
}
if (itr != tasks.end()) {
//找到了
unsigned int *ptr =[......]