This commit is contained in:
Ingy döt Net 2013-10-27 22:24:23 +00:00
parent 6f050a029e
commit 776bba907c
3887 changed files with 59894 additions and 7280 deletions

View file

@ -1,22 +1,21 @@
import std.stdio, std.conv, std.string;
void main() {
import std.stdio, std.conv, std.string;
int nRow, nCol;
write("Give me the numer of rows: ");
try {
nRow = readln().strip().to!int();
} catch (StdioException e) {
nRow = readln.strip.to!int;
} catch (StdioException) {
nRow = 3;
writeln();
writeln;
}
write("Give me the numer of columns: ");
try {
nCol = to!int(readln().strip());
} catch (StdioException e) {
nCol = readln.strip.to!int;
} catch (StdioException) {
nCol = 5;
writeln();
writeln;
}
auto array = new float[][](nRow, nCol);