Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121961277
planet2.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
Tue, Jul 15, 02:15
Size
267 B
Mime Type
text/x-c
Expires
Thu, Jul 17, 02:15 (2 d)
Engine
blob
Format
Raw Data
Handle
27418453
Attached To
R9360 PCSC_git
planet2.cpp
View Options
#include "planet2.hh"
void
Planet
::
move
(
double
delta
[
3
])
{
// DO SOME CODE
}
Planet
::
Planet
()
{
coords
=
new
double
[
3
];
coords
[
0
]
=
0.
;
coords
[
1
]
=
1.
;
coords
[
2
]
=
2.
;
}
Planet
::~
Planet
()
{
// delete memory
delete
[]
coords
;
}
int
main
()
{
// ...
}
Event Timeline
Log In to Comment