chouc@mist.CS.ORST.EDU (Chou Chung-Di) (06/20/91)
I was trying to use the Queue class in BC++ 2.0 with instances of user- defined classes. For example, I want to put some machines into the queue. But I was confused by the way BC++ works. I added my new class "Machine" as a subclass of Object and defined all the "pure functions" in the subclass. It compiled and linked all right. When I tried to put an instance into the queue, it seemed OK. But when I tried to get it out of the queue, the computer hang (but it gives me the right value). Could someone who has created subclasses using the existing class provide me with some hints? Thanks in advance for any pointers. Tony Chou Graduate Student Department of Industrial & Manufacturing Engineering Oregon State University Corvallis, OR 97331