struct Car { string name; } Car * car = nullptr; int count = 100; car = new Car[count]; for (int i = 0; i < count; i++) { car[i].name = "car" + i; }