예제 #1
0
void Argus::process(){
    Query q;
    for (int i = 0; i < k; i++){
        q = que.top();
        que.pop();
        cout << q.Qnum() << endl;
        q.nextTime();
        que.push(q);
    }
}
예제 #2
0
 bool operator = (Query q){
     intQnum = q.Qnum();
     intPeriod = q.Period();
     intTimeOfReturn = q.TimeOfReturn();
 }
예제 #3
0
 friend bool operator< (Query q1, Query q2){
     return (q2.TimeOfReturn() < q1.TimeOfReturn())
            || ((q2.TimeOfReturn() == q1.TimeOfReturn())&&(q2.Qnum() < q1.Qnum()));
 }