Checking weekdays
#7

Quote:
Originally Posted by Rapgangsta
Посмотреть сообщение
Oh sorry, i forgot a ' ) '

Код:
new Year, Month, Day;
getdate(Year, Month, Day);
if(!strcmp(GetWeekDay(Day, Month, Yeaer), "Saturday"), 1))
{
printf("Today is Saturday!");
}
Now it gave me an error:

warning 206: redundant test: constant expression is non-zero
error 029: invalid expression, assumed zero
Reply


Messages In This Thread
Checking weekdays - by siemka321 - 31.08.2013, 19:31
Re: Checking weekdays - by Rapgangsta - 31.08.2013, 19:55
Re: Checking weekdays - by siemka321 - 31.08.2013, 20:17
Re: Checking weekdays - by Rapgangsta - 31.08.2013, 20:29
Re: Checking weekdays - by siemka321 - 31.08.2013, 21:03
Re: Checking weekdays - by Rapgangsta - 31.08.2013, 21:29
Re: Checking weekdays - by siemka321 - 31.08.2013, 21:49
Re: Checking weekdays - by Rapgangsta - 31.08.2013, 22:41
Re: Checking weekdays - by siemka321 - 01.09.2013, 06:44

Forum Jump:


Users browsing this thread: 2 Guest(s)