Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81403608
particle.cc
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
Thu, Sep 5, 20:56
Size
394 B
Mime Type
text/x-c
Expires
Sat, Sep 7, 20:56 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20563152
Attached To
R7571 SP4E-TB-TL-FR
particle.cc
View Options
#include "particle.hh"
void
Particle
::
printself
(
std
::
ostream
&
stream
)
const
{
stream
<<
position
<<
" "
;
stream
<<
velocity
<<
" "
;
stream
<<
force
<<
" "
;
stream
<<
mass
<<
" "
;
}
/* -------------------------------------------------------------------------- */
void
Particle
::
initself
(
std
::
istream
&
sstr
)
{
sstr
>>
position
;
sstr
>>
velocity
;
sstr
>>
force
;
sstr
>>
mass
;
}
Event Timeline
Log In to Comment