arrays - Does new[] call default constructor in C++? - Stack ...
經安全檢測,此網站為安全網站,請放心前往原始網址!
arrays - Does new[] call default constructor in C++? - Stack ...
2010年8月26日 - When I use new[] to create an array of my classes: int count = 10; A *arr = new A[count];. I see that it calls a default constructor of A count times.