Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62408789
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
Mon, May 13, 00:08
Size
398 B
Mime Type
text/x-c
Expires
Wed, May 15, 00:08 (2 d)
Engine
blob
Format
Raw Data
Handle
17012516
Attached To
R9490 Homework_sp4e_Peruzzo_SáezUribe
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