Anonymous user
Calendar - for "REAL" programmers: Difference between revisions
m
→{{header|Elena}}
m (Fixed 2 spelling errors) |
|||
Line 1,047:
=={{header|Elena}}==
ELENA 4.
<lang elena>import system'text;
import system'routines;
Line 1,054:
import extensions'routines;
const MonthNames = new string[]
const DayNames = new string[]
class CalendarMonthPrinter
Line 1,089:
theLine.writeCopies(" ",theDate.DayOfWeek == 0 ? 7 : (theDate.DayOfWeek - 1));
do
doUntil(theDate.Month != theMonth || theDate.DayOfWeek == 1)▼
{
theLine.writePaddingLeft(theDate.Day.Printable, $32, 3);
theDate := theDate.addDays:1
}
};
|