book: use curly brackets to initailize aggregate objects (#112)

This commit is contained in:
TinyWang
2020-08-10 15:57:48 +08:00
committed by Changkun Ou
parent 9dbdd53f2e
commit 4de9eb49f7
3 changed files with 5 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ int main() {
auto i = 5; // type int
auto j = 6; // type int
auto arr = new auto(10); // type int*
// auto auto_arr2[10] = arr;
// auto auto_arr2[10] = {arr};
// std::cout << add(i, j) << std::endl;
return 0;
}