Click here to Skip to main content
16,005,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Type of Derived Class a problem for STL lists? Pin
19-Dec-04 16:53
suss19-Dec-04 16:53 
GeneralRe: Type of Derived Class a problem for STL lists? Pin
Jordan C. Atlas22-Dec-04 8:34
Jordan C. Atlas22-Dec-04 8:34 
Generalpassing variables Pin
Timothy Grabrian19-Dec-04 12:20
professionalTimothy Grabrian19-Dec-04 12:20 
GeneralRe: passing variables Pin
PJ Arends19-Dec-04 15:33
professionalPJ Arends19-Dec-04 15:33 
GeneralRe: passing variables Pin
Timothy Grabrian19-Dec-04 15:59
professionalTimothy Grabrian19-Dec-04 15:59 
GeneralTracking Registered Window Message Pin
rajas19-Dec-04 10:24
rajas19-Dec-04 10:24 
GeneralCapturing Datalink frames Pin
Arvind_Nagarajan_198119-Dec-04 6:08
Arvind_Nagarajan_198119-Dec-04 6:08 
GeneralWant the following riddle source code please help! Pin
babur khan18-Dec-04 21:57
babur khan18-Dec-04 21:57 
There are four guys trying to get home at night and in order to do so, they MUST cross a bridge. It's very dark and there is only one torch available. The bridge can ONLY support "TWO" person at a time. Now, a bomb has been set on the bridge which will explode in 18 mins. Due to the fact that each person's travelling speeds are different, therefore some will obviously take longer to cross than others.

The time that each person takes are as followed:
A = 1 min
B = 2 min
C = 5 min
D = 10 min
Torch = 1 Qty
Here's how it works: If D & A goes first, it'll require 10 mins for them to cross the bridge together. By the time A gets back with the torch to B&C...11 mins will be passed already.
The total time required is : 17 mins
the solution to it is:
A and B first - 2 minutes (max 2 )
A runs back with torch = 3 minutes
C and D Next = 13 minutes ( max 10 )
B comes back with the torch = 15 minutes ( max 5 )
A and B again = 17 minutes

Can anyone tell me the code to this problem in turbo c or vc urgent please please. many many thanks in advance.

Babur Khan
GeneralRe: Want the following riddle source code please help! Pin
Alex Korchemniy18-Dec-04 23:07
Alex Korchemniy18-Dec-04 23:07 
GeneralRe: Want the following riddle source code please help! Pin
Anonymous18-Dec-04 23:18
Anonymous18-Dec-04 23:18 
GeneralDelaying Milliseconds in c++ Pin
CNewbie18-Dec-04 16:50
CNewbie18-Dec-04 16:50 
GeneralRe: Delaying Milliseconds in c++ Pin
ThatsAlok18-Dec-04 19:35
ThatsAlok18-Dec-04 19:35 
GeneralRe: Delaying Milliseconds in c++ Pin
CNewbie19-Dec-04 4:33
CNewbie19-Dec-04 4:33 
GeneralRe: Delaying Milliseconds in c++ Pin
Trollslayer19-Dec-04 7:25
mentorTrollslayer19-Dec-04 7:25 
GeneralRe: Delaying Milliseconds in c++ Pin
Malcolm Smart19-Dec-04 11:46
Malcolm Smart19-Dec-04 11:46 
Generaltopmost Pin
Max Santos18-Dec-04 16:39
Max Santos18-Dec-04 16:39 
GeneralRe: topmost Pin
ThatsAlok18-Dec-04 19:46
ThatsAlok18-Dec-04 19:46 
Generalkeyboard error handling Pin
xelitex18-Dec-04 16:00
xelitex18-Dec-04 16:00 
GeneralRe: keyboard error handling Pin
ThatsAlok18-Dec-04 16:11
ThatsAlok18-Dec-04 16:11 
Generalget a window handle from just a process Pin
Spiritofamerica18-Dec-04 13:36
Spiritofamerica18-Dec-04 13:36 
GeneralRe: get a window handle from just a process Pin
gamitech18-Dec-04 14:16
gamitech18-Dec-04 14:16 
GeneralPassing CArray<struct, &struct> by reference Pin
(Steven Hicks)n+118-Dec-04 13:21
(Steven Hicks)n+118-Dec-04 13:21 
GeneralRe: Passing CArray by reference Pin
Jack Puppy18-Dec-04 15:26
Jack Puppy18-Dec-04 15:26 
GeneralRe: Passing CArray&lt;struct, &amp;struct&gt; by reference Pin
Member 58088119-Dec-04 16:41
Member 58088119-Dec-04 16:41 
GeneralRe: Passing CArray&lt;struct, &amp;struct&gt; by reference Pin
(Steven Hicks)n+119-Dec-04 17:00
(Steven Hicks)n+119-Dec-04 17:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.