Search found 3 matches

by sqm
Mon Jan 31, 2005 3:57 pm
Forum: C++
Topic: STL priority queue
Replies: 5
Views: 3492

I wonder if someone could help me:
I have priority_queue of pointers to struct:

struct type{
int val;
};

priority_queue<type*>Q;

How can I overload operator?
by sqm
Mon Jan 31, 2005 12:54 pm
Forum: Volume 108 (10800-10899)
Topic: 10801 - Lift Hopping
Replies: 56
Views: 35752

Thank you all. I think strtok() is easier and faster way to read. I've written code which in my opinion is good (I got good answers on my computer) and I submitted it but I got Runtime Error (SIGSEGV). I think the problem is the way I read data because I deleted all additional code and send only par...
by sqm
Sun Jan 30, 2005 2:28 pm
Forum: Volume 108 (10800-10899)
Topic: 10801 - Lift Hopping
Replies: 56
Views: 35752

Could somebody tell me how to read input in this task - I don't know how make my program stop reading list of floors that I am able to achieve using current elevator.. In C or C++

Go to advanced search