Amiga.org
Coffee House => Coffee House Boards => CH / General => Topic started by: adz on August 05, 2005, 07:35:18 AM
-
While our dear friend whabang is away on paternity leave :-P I'm stepping in to ensure at least a few Friday threads pop up during his absence :-D
Anyways, hope you all have a great weekend...Cheers :pint: :-)
-
:pint:
-
'Tis sundays again, but whatever :pint:
-
Speelgoedmannetje wrote:
'Tis sundays again, but whatever :pint:
Yeah but it doesn't matter since sunday == friday[2]...
-
Correction, 'tis
var
int dayOfWeek;
int sunday = 7;
int friday = 5;
begin
for (dayOfWeek = 1, dayOfWeek = 7, dayOfWeek := dayOfWeek + 1)
if (dayOfWeek = (sunday)) then
begin
sunday := friday;
dayOfWeek := sunday;
end;
end.
now where is the bug :-? :lol: