For constructing an IntSetArgs with instructorOfStudent[], below is the way I 
used.
It seems a bit stupid to put the instructorOfStudent[] into a tmpValue[1] in 
order to use the constructor.
Is there are smarter way to do so?
 
   IntSetArgs relValues(noOfStudents);
   int tmpValue[1];
   for(int j=0; j<noOfStudents; j++) {
     tmpValue[0] = instructorOfStudent[j];
     relValues[j] = IntSet(tmpValue, 1);
   }


      Yahoo!香港提供網上安全攻略,教你如何防範黑客! 請前往 http://hk.promo.yahoo.com/security/ 了解更多!
_______________________________________________
Gecode users mailing list
[email protected]
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to