ВУЗ:
Составители:
Рубрика:
76
newColumns[i] = columns[i + 1];
}
columns = newColumns;
}
public Array2D(int _size) {
columns = new Array1D[_size];
Random r = new Random();
for (int i = 0; i < columns.Length; i++) {
columns[i] = new Array1D(_size, r);//создание строки
}
}
public void printLine(int lineIndex) {
for (int i = 0; i < columns.Length; i++) {
Console.Write(columns[i].data[lineIndex].ToString().PadRight(3, '
'));
}
Console.WriteLine();
}
public void process() {
for (int i = columns.Length - 1; i >= 0; i-- ) {
if (columns[i].needDel()) {
delColumn(i);
}
}
}
public void print() {
if (columns.Length == 0) {
return;
}
for (int i = 0; i < columns[0].data.Length; i++) {
printLine(i);
}
Console.WriteLine();
}
}
}
Страницы
- « первая
- ‹ предыдущая
- …
- 74
- 75
- 76
- 77
- 78
- …
- следующая ›
- последняя »