Мелочи

This commit is contained in:
2024-12-03 19:06:43 +03:00
parent 07d8a83ebe
commit a3b00e15e2

View File

@@ -14,7 +14,6 @@ int main()
setlocale(LC_ALL, "Russian");
while (true) {
skipIter:
clear();
cout << "Выберите способ вычисления функции:\n"
@@ -28,7 +27,7 @@ int main()
if (actionId == 1) {
cout << "Выйти из программы? (yes/no)\n";
if (userApprove()) return 0;
goto skipIter;
break;
}
cout << "Укажите ширину поля (min 1): ";
@@ -46,16 +45,17 @@ int main()
CellularAutomaton ca(fieldWidth, fieldHeight, fillWithRandom);
clear();
std::cout << "\nИтерация 0:\n";
cout << "\nИтерация 0:\n";
ca.displayField();
for (int i = 0; i < iterationsCount; ++i)
{
std::cout << "\nИтерация " << i + 1 << ":\n";
cout << "\nИтерация " << i + 1 << ":\n";
ca.update();
ca.displayField();
}
cout << "Нажмите на enter, чтобы продолжить...";
waitForEnter();
}
}