|
|
|||||||
| About Us | Register | FAQ | Members List | Calendar | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Banned
![]() ![]() Join Date: Sep 2002
Location: Pakistan
Posts: 132
|
What the hell is this problem????
Can someone help me out of this problem!!!
Queuing at the doctors If you have any solutions to this problem please help me!!! |
|
|
|
|
|
#2 (permalink) |
|
"Insert witty title here"
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2003
Location: In a house
Posts: 1,046
|
Is this some sort of programming assignment? The data is variable and the situation is layed out and everything. It seems like one of those simple problems that just confuses you with lots of info. I might try to find an answer for it later if no one else does, I'm too tired right now.
|
|
|
|
|
|
#3 (permalink) |
|
Banned
![]() ![]() Join Date: Sep 2002
Location: Pakistan
Posts: 132
|
Thanks for the reply bcrew1375, it is a problem that my friend asked me and I just can't seem to understand it. How do you solve it!!!
Though I got a hang of it now. Still there are confusions...Anybody else, help might be appreciated. |
|
|
|
|
|
#5 (permalink) |
|
Registered User
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2002
Location: St Andrews, Scotland
Posts: 1,575
|
I get it. Maybe I'll put something together later.
__________________
OS: Arch Linux w/ Kernel 2.6.23.8 + GNOME 2.20.1 - CPU: Intel Pentium M 1.5GHz - Memory: 1280MB DDR PC2700 - Browser: Mozilla Firefox 2.0.0.10 |
|
|
|
|
|
#7 (permalink) |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Aug 2003
Location: Victorville(Near Los Angeles or LA for those who are on the DL)
Posts: 839
|
Seems like this was meant as a programming problem. In C++ you could use a deque from the STL. and then just push ICORE members onto the back and pop them as doctors become available.
__________________
----------------- Emu Tinkerer and C++ Programmer |
|
|
|
|
|
#8 (permalink) |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Mar 2002
Location: Vienna/Austria/Europe
Posts: 1,168
|
To solve this, you would write a program. A program is a sequence of statements, written in a formal language a computer understands. Since this is a simple task, about any programming language should do. The main part is the simulation of the behaviour of the people in the queue in front of a doctor's office.
__________________
If you think my English is bad, wait till you read my Polish. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|