Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121593605
planet3.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jul 12, 07:17
Size
244 B
Mime Type
text/x-c
Expires
Mon, Jul 14, 07:17 (2 d)
Engine
blob
Format
Raw Data
Handle
27354642
Attached To
R9360 PCSC_git
planet3.cpp
View Options
#include "planet3.hh"
Planet
::
Planet
(
const
Planet
&
p
)
{
// copy pointer ?
coords
=
p
.
coords
;
// or copy the content ?
coords
=
new
double
[
3
];
for
(
int
i
=
0
;
i
<
3
;
++
i
)
{
coords
[
i
]
=
p
.
coords
[
i
];
}
}
int
main
()
{
// ...
}
Event Timeline
Log In to Comment