Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78976976
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, Aug 24, 02:20
Size
244 B
Mime Type
text/x-c
Expires
Mon, Aug 26, 02:20 (2 d)
Engine
blob
Format
Raw Data
Handle
20130616
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