Template:ClassMatrix: Difference between revisions
No edit summary |
No edit summary |
||
Line 54: | Line 54: | ||
end | end | ||
for x,v in string.gmatch(xaxis, "(%S+) (%S+)") do | for x,v in string.gmatch(xaxis, "(%S+) (%S+)") do | ||
str = ""; | |||
for y,v in string.gmatch(yaxis, "(%S+) (%S+)") do | for y,v in string.gmatch(yaxis, "(%S+) (%S+)") do | ||
if (M[x][y] == nil) | if (M[x][y] == nil) | ||
then | then str = str .. "0 "; | ||
else | else str = str .. M[x][y] .. " "; | ||
end | end | ||
end | end | ||
print("\n"); | print(str .. "\n"); | ||
end | end | ||
Revision as of 20:20, 18 December 2008
{{#lua:}}! ({{{1}}} () | {{{1}}} () | for (id in stdin:gmatch("%w+") do) | {{{1}}} () | {{{1}}} () | {{{1}}} () | {{{1}}} () | end () | end () | table.sort(T); () | {{{1}}} () | {{{1}}} () | print(k (.. " " .. H[k]);) | end () | () | ()) | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{#lua:}}|- | {{{1}}} | |||||||||||||||
{{{1}}} | ||||||||||||||||
{{{1}}} | ||||||||||||||||
for id in string.gmatch(all,"(%S+)") do | ||||||||||||||||
{{{1}}} | ||||||||||||||||
{{{1}}} | ||||||||||||||||
{{{1}}} | ||||||||||||||||
{{{1}}} | ||||||||||||||||
{{{1}}} | ||||||||||||||||
{{{1}}} | ||||||||||||||||
end | ||||||||||||||||
end | ||||||||||||||||
for x,v in string.gmatch(xaxis, "(%S+) (%S+)") do | ||||||||||||||||
{{{1}}} | ||||||||||||||||
for y,v in string.gmatch(yaxis, "(%S+) (%S+)") do | ||||||||||||||||
{{{1}}} | ||||||||||||||||
{{{1}}} | ||||||||||||||||
{{{1}}} | ||||||||||||||||
end | ||||||||||||||||
end | ||||||||||||||||
print(str .. "\n"); | ||||||||||||||||
end | ||||||||||||||||
' | ||||||||||||||||
' | ||||||||||||||||
'''' |