Click here to Skip to main content
15,904,156 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 15:57
Dave Sweetser16-Nov-03 15:57 
GeneralRe: where's main() ??? Pin
Johnny ²16-Nov-03 21:43
Johnny ²16-Nov-03 21:43 
GeneralRe: where's main() ??? Pin
Ravi Bhavnani17-Nov-03 3:43
professionalRavi Bhavnani17-Nov-03 3:43 
GeneralI need some help please Pin
Anonymous16-Nov-03 13:18
Anonymous16-Nov-03 13:18 
GeneralRe: I need some help please Pin
Christian Graus16-Nov-03 16:16
protectorChristian Graus16-Nov-03 16:16 
GeneralGetting the system date Pin
kerplatz16-Nov-03 11:56
kerplatz16-Nov-03 11:56 
GeneralRe: Getting the system date Pin
Michael Dunn16-Nov-03 12:38
sitebuilderMichael Dunn16-Nov-03 12:38 
GeneralRe: Getting the system date Pin
kerplatz16-Nov-03 13:10
kerplatz16-Nov-03 13:10 
Thanks Mike,
Sorry but I don't have a clue as to what you are saying. I have not worked with structures or classes, just functions. I have only been in a C++ classroom for about 3 months. In BASIC this was easy, DATE$ gave you the date and then you could manipulate it. I don't want you to write the code for me. Can I look at code that is already written and be able to understand it so I can then modify and use it in my program? Everything I have seen so far has been confusing because I have seen no explaination of what is happening. For example, I found this snippet of code in Visual Studio C++ that displays the information I need, but there are places in the program that I do not understand. Here it is.

#include <stdio.h><br />
#include <sys/timeb.h><br />
#include <time.h><br />
#include <iostream.h><br />
<br />
void main( void )<br />
{<br />
   struct __timeb64 timebuffer;<br />
   char *timeline;<br />
   char wait;<br />
<br />
   _ftime64( &timebuffer );<br />
   timeline = _ctime64( & ( timebuffer.time ) );<br />
<br />
   printf( "The time is %.19s.%hu %s", timeline, timebuffer.millitm, &timeline[20] );<br />
   cin >> wait;  //I added this.<br />
}


Would you explain this program to me so I can umderstand what is going on, or can you guide me to where I can read something that explains what is taking place? Thanks again.


David Hoffman
GeneralRe: Getting the system date Pin
Steve S17-Nov-03 2:05
Steve S17-Nov-03 2:05 
QuestionHow to move a CToolBar? Pin
Florin Ochiana16-Nov-03 11:32
Florin Ochiana16-Nov-03 11:32 
QuestionHow to show (restore) my window when MessageBox dialog is not closed? Pin
julych16-Nov-03 10:38
julych16-Nov-03 10:38 
AnswerRe: How to show (restore) my window when MessageBox dialog is not closed? Pin
Uma Mahes16-Nov-03 17:39
Uma Mahes16-Nov-03 17:39 
GeneralToggle views :: In_SplitterWnd Pin
gaesabal16-Nov-03 8:23
gaesabal16-Nov-03 8:23 
GeneralRe: Toggle views :: In_SplitterWnd Pin
Ivor S. Sargoytchev16-Nov-03 16:43
Ivor S. Sargoytchev16-Nov-03 16:43 
GeneralRestricting programs to parts of the screen Pin
Anonymous16-Nov-03 4:59
Anonymous16-Nov-03 4:59 
GeneralRe: Restricting programs to parts of the screen Pin
Michael Dunn16-Nov-03 5:23
sitebuilderMichael Dunn16-Nov-03 5:23 
Generalhelp wanted, pdf file split operation Pin
NotProfessional15-Nov-03 20:19
NotProfessional15-Nov-03 20:19 
GeneralHelp me: need strategy for CrashLogs Pin
Peter Weyzen15-Nov-03 18:22
Peter Weyzen15-Nov-03 18:22 
GeneralRe: Help me: need strategy for CrashLogs Pin
Michael P Butler16-Nov-03 1:48
Michael P Butler16-Nov-03 1:48 
GeneralRe: Help me: need strategy for CrashLogs Pin
Peter Molnar16-Nov-03 2:34
Peter Molnar16-Nov-03 2:34 
GeneralRe: Help me: need strategy for CrashLogs Pin
Ceri16-Nov-03 22:44
Ceri16-Nov-03 22:44 
GeneralRe: Help me: need strategy for CrashLogs Pin
Peter Weyzen17-Nov-03 8:30
Peter Weyzen17-Nov-03 8:30 
GeneralHelp in assembler. Pin
Snyp15-Nov-03 15:10
Snyp15-Nov-03 15:10 
GeneralRe: Help in assembler. Pin
Tim Smith15-Nov-03 16:21
Tim Smith15-Nov-03 16:21 
GeneralRe: Help in assembler. Pin
Snyp15-Nov-03 16:42
Snyp15-Nov-03 16:42 

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.