Username or Email
Password
Remember me
Sign in
Sign up
Add Paste
Add Collection
unnamed file
C/C++
No Description
Guest
Download
Edit
Foo
*
baz
;
// Die folgenden drei Zeilen sollten dasselbe tun wie: baz = new Foo[10];
baz
=
(
Foo
*
)
((
size_t
*
)
operator
new
[
]
(
10
*sizeof
(
Foo
)
+sizeof
(
size_t
))
+1
)
;
*
((
size_t
*
)
baz
-1
)
=
10
;
for
(
int
i
=
0
;
i
<
10
;
++
i
)
new
(
baz
+
i
)
Foo
;
delete
[
]
baz
;
cout
<<
endl
;