Anonymous user
Calendar - for "REAL" programmers: Difference between revisions
m
→{{header|Elena}}
(Merge omitted languages at bottom and add Processing) |
|||
Line 1,047:
=={{header|Elena}}==
ELENA
<lang elena>import system'text;
import system'routines;
Line 1,054:
import extensions'routines;
const MonthNames = new string[]
"NOVEMBER","DECEMBER"};
const DayNames = new string[]
class CalendarMonthPrinter
Line 1,087 ⟶ 1,088:
if (theDate.Month == theMonth)
{
theLine.writeCopies(" ",theDate.DayOfWeek == 0 ? 6 : (theDate.DayOfWeek - 1));
do
{
theLine.writePaddingLeft(theDate.Day.
theDate := theDate.addDays:1
}
until
};
Line 1,105 ⟶ 1,108:
}
indexer() = new Indexer
{
bool Available = theRow < 7;
▲ writeIndex(int index)
{
set(int
{ self.writeTitle() };
while (index > theRow)
{ self.writeLine() }
}
}
appendIndex(int index)
{
}
get() = self;
Line 1,156 ⟶ 1,164:
output.writePadding("[SNOOPY]", $32, theRowLength * 25);
output.writeLine();
output.writePadding(theYear.
output.writeLine().writeLine();
|