Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Data Structures (3rd), Chapter 4, Exercise 14, p 267 Pin
Jörgen Sigvardsson26-Oct-03 5:45
Jörgen Sigvardsson26-Oct-03 5:45 
GeneralPlotting Graphs Pin
emrosa25-Oct-03 7:30
emrosa25-Oct-03 7:30 
GeneralRe: Plotting Graphs Pin
Oinka25-Oct-03 10:11
Oinka25-Oct-03 10:11 
GeneralNeed help developing algorithm Pin
Steven M Hunt25-Oct-03 5:54
Steven M Hunt25-Oct-03 5:54 
GeneralRe: Need help developing algorithm Pin
CillyMe25-Oct-03 8:05
CillyMe25-Oct-03 8:05 
GeneralRe: Need help developing algorithm Pin
Steven M Hunt25-Oct-03 8:24
Steven M Hunt25-Oct-03 8:24 
GeneralRe: Need help developing algorithm Pin
Oinka25-Oct-03 8:49
Oinka25-Oct-03 8:49 
GeneralRe: Need help developing algorithm Pin
Ravi Bhavnani25-Oct-03 9:02
professionalRavi Bhavnani25-Oct-03 9:02 
Use mktime() to obtain a time_t value from individual time fields, then use difftime(). Or you can roll your own algorithm like so:

long differenceInSeconds
  (long nStartHour,
   long nStartMinute,
   long nStartSecond,
   long nEnd Hour,
   long nEndMinute,
   long nEndSecond)
{
  long nStart = nStartHour*3600 + nStartMinute*60 + nStartSecond;
  long nEnd = nEndHour*3600 + nEndMinute*60 + nEndSecond;
  return (nEnd - nStart);
}
I hope you didn't make me do your homework. Cry | :(( (You're only cheating yourself, if you did).

/ravi

Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com

GeneralDial-up server in windows 98 Pin
choupani25-Oct-03 4:14
choupani25-Oct-03 4:14 
GeneralProblem with extern in C++(Very urgent) Pin
Azghar Hussain25-Oct-03 3:35
professionalAzghar Hussain25-Oct-03 3:35 
GeneralRe: Problem with extern in C++(Very urgent) Pin
Ravi Bhavnani25-Oct-03 4:18
professionalRavi Bhavnani25-Oct-03 4:18 
GeneralRe: Problem with extern in C++(Very urgent) Pin
Azghar Hussain25-Oct-03 5:13
professionalAzghar Hussain25-Oct-03 5:13 
GeneralRe: Problem with extern in C++(Very urgent) Pin
Jörgen Sigvardsson26-Oct-03 5:46
Jörgen Sigvardsson26-Oct-03 5:46 
GeneralRe: Problem with extern in C++(Very urgent) Pin
Azghar Hussain26-Oct-03 17:20
professionalAzghar Hussain26-Oct-03 17:20 
GeneralCDC::TransparentBlt Pin
eugi25-Oct-03 2:32
eugi25-Oct-03 2:32 
GeneralCopy buffer to another buffer Pin
Rickard Andersson2025-Oct-03 0:35
Rickard Andersson2025-Oct-03 0:35 
GeneralRe: Copy buffer to another buffer (solved) Pin
Rickard Andersson2025-Oct-03 0:46
Rickard Andersson2025-Oct-03 0:46 
GeneralUrgent: Doubt in Document Pin
Sreeramachandra24-Oct-03 23:09
Sreeramachandra24-Oct-03 23:09 
QuestionWhat to do to publish our research paper in Microsoft Journal Pin
Azghar Hussain24-Oct-03 22:48
professionalAzghar Hussain24-Oct-03 22:48 
QuestionIs this a trick question? Pin
CillyMe24-Oct-03 21:38
CillyMe24-Oct-03 21:38 
AnswerRe: Is this a trick question? Pin
Andrew Walker24-Oct-03 22:03
Andrew Walker24-Oct-03 22:03 
GeneralRe: Is this a trick question? Pin
CillyMe25-Oct-03 0:37
CillyMe25-Oct-03 0:37 
GeneralRe: Is this a trick question? Pin
Ravi Bhavnani25-Oct-03 4:11
professionalRavi Bhavnani25-Oct-03 4:11 
GeneralRe: Is this a trick question? Pin
Tim Smith25-Oct-03 8:11
Tim Smith25-Oct-03 8:11 
GeneralRe: Is this a trick question? Pin
Ravi Bhavnani25-Oct-03 8:24
professionalRavi Bhavnani25-Oct-03 8:24 

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.