يا شباب أبغى أحد يشرحلي هذي function
:rolleyes: :rolleyes: :rolleyes:
void Time(string &ss)
{
struct tm *newtime;
long ltime;
string tt;
time( <ime );
/* Obtain coordinated universal time: */
newtime = gmtime( <ime );
tt= asctime( newtime );
ss = tt;
}//end fuonctio
//*************************function DAY***************************
int DAY()
{
SYSTEMTIME st;
GetSystemTime(&st);
//cout<<st.wYear<<"/"<<st.wMonth<<"/"<<st.wDay<<endl;// ÇáæÞÊ
//cout<<st.wHour<<"/"<<st.wMinute<<"/"<<st.wSecond<<endl; // ÇáÒãä
//system("PAUSE");
return st.wDay;
}//end function