السلام عليكــم ورحمـة الله وبركاتــة ،،
من فتره طرحت موضوع عن دالة فحص التاريخ
والشكر الجزيل الى الاخوين
GamingMasteR
ASPHP
للمساعدة في ايجاد الداله
الكود يعمل في فيجول ستوديو 6 بشكل كامل ولكن كيف اجعله يعمل في Dev c++ لان مشروعي بواسطته
الكود هو
#include <afx.h>
int main()
{
CTime BOOMTime(2009, 3, 7, 0, 0, 0 );
CTime SystemTime= CTime::GetCurrentTime();
printf("%u/%u/%u \n", SystemTime.GetYear(), SystemTime.GetMonth(), SystemTime.GetDay());
if (SystemTime >= BOOMTime)
printf("BOOM !\n"); // will boom
else
printf("NOT BOOM !\n"); // will not boom
getchar();
return EXIT_SUCCESS;
}الاخطاء كالتالي
:1:17: afx.h: No such file or directory : In function `int main()': :6: error: `CTime' undeclared (first use this function) :6: error: (Each undeclared identifier is reported only once for each function it appears in.) :6: error: expected `;' before "BOOMTime" :7: error: expected `;' before "SystemTime" :9: error: `SystemTime' undeclared (first use this function) :9: error: `printf' undeclared (first use this function) :10: error: `BOOMTime' undeclared (first use this function) :14: error: `getchar' undeclared (first use this function) :15: error: `EXIT_SUCCESS' undeclared (first use this function)
