Понимаю что вопрос для школьников, но не смог разобраться как сделать запись уже в существующий массив и его перевывести?
Сам код массива:
string[,] flight_bort = new string [6,7]
{
{ air1.date + " | ", bort_id + " | ", air1.city + " | ", air1.airline + " | ", air1.terinal + " | ", air1.status + " | ", air1.gate + " | "},
{ air2.date + " | ", bort_id + " | ", air2.city + " | ", air2.airline + " | ", air2.terinal + " | ", air2.status + " | ", air2.gate + " | "},
{ air3.date + " | ", bort_id + " | ", air3.city + " | ", air3.airline + " | ", air3.terinal + " | ", air3.status + " | ", air3.gate + " | "},
{ air4.date + " | ", bort_id + " | ", air4.city + " | ", air4.airline + " | ", air4.terinal + " | ", air4.status + " | ", air4.gate + " | "},
{ air5.date + " | ", bort_id + " | ", air5.city + " | ", air5.airline + " | ", air5.terinal + " | ", air5.status + " | ", air5.gate + " | "},
{ air6.date + " | ", bort_id + " | ", air6.city + " | ", air6.airline + " | ", air6.terinal + " | ", air6.status + " | ", air6.gate + " | "}
};
for (int i = 0; i < flight_bort.GetLength(0); i++)
{
for (int j = 0; j < flight_bort.GetLength(1); j++)
{
Console.Write(flight_bort[i, j]);
}
Console.WriteLine();
}
нужно добавить элемент с такими данными
{ my_date_bort + " | ", my_number_bort + " | ", my_city_bort + " | ", my_avialine_bort + " | ", my_terminal_bort + " | ", my_status_bort + " | ", my_gate_bort + " | "}