Minesweeper game/D: Difference between revisions
Content added Content deleted
m (→Main module) |
m (→Main module) |
||
Line 440: | Line 440: | ||
curLine = readln(); |
curLine = readln(); |
||
//Uniform function call syntax. |
|||
//Non-member functions can be called with the first argument using dot notation. |
|||
//"curLine.formattedRead(" is the same as "formattedRead(curLine, ". |
|||
len1 = curLine.formattedRead("%s %s", &height, &width); |
len1 = curLine.formattedRead("%s %s", &height, &width); |
||
} while (len1 == 0 || height < 2 || width < 2); |
} while (len1 == 0 || height < 2 || width < 2); |