- e-mail

 

 -

   Bhaal

 -

 LiveInternet.ru:
: 25.03.2007
:
:
: 193

:


C++ Windows

, 26 2007 . 22:00 +
- Incubus - I Miss You
- totally depressed, hell on ya

, .
, .


-, time.h
code:
#include <time.h>

... - .
sleep():
code:

void sleep(unsigned int mseconds)
{
clock_t goal = mseconds + clock();
while (goal > clock());
}


_strdate() and _strtime().
, :
code:

int main()
{
char dateStr [9];
char timeStr [9];
_strdate( dateStr);
printf( "The current date is %s \n", dateStr);
_strtime( timeStr );
printf( "The current time is %s \n", timeStr);
return 0;
}


.
5 . , , , MS-DOS Windows.
SYSTEMTIME.
code:

typedef struct _SYSTEMTIME {
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME;


:
code:

#include <Windows.h>
#include <stdio.h>

int main()
{
SYSTEMTIME st;
GetSystemTime(&st);
printf("Year:%d\nMonth:%d\nDate:%d\nHour:%d\nMin:%d\nSecond:%d\n" ,st.wYear,st.wMonth,st.wDay,st.wHour,st.wMinute,st.wSecond);
return 0;
}



:  

_twinka_   , 26 2007 . 22:05 ()
, =)
   
: [1] []
 

:
: 

: ( )

:

  URL