var city = new city(5);
class city { private readonly int[] _num; private readonly int _size; public city(int Size) { _size = Size; _num= new int[_size]; }
int cityInt = -1; try { cityInt = Convert.ToInt32(Console.ReadLine()); } catch { Console.WriteLine("Input isn't an integer!"); } if (cityInt != -1) { var city = new city(cityInt); }
Console.ReadLine();
Convert.ToInt32
int cityInt = Convert.ToInt32(Console.ReadLine());
Boardi.N = ...
Boardi.N = int.Parse(Console.ReadLine());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)