Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78398820
fstream.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, Aug 20, 14:59
Size
291 B
Mime Type
text/x-c
Expires
Thu, Aug 22, 14:59 (2 d)
Engine
blob
Format
Raw Data
Handle
20024858
Attached To
R7571 SP4E-TB-TL-FR
fstream.cpp
View Options
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
int
main
()
{
std
::
ofstream
fout
(
"test.plot"
);
fout
<<
M_PI
<<
std
::
endl
;
fout
.
close
();
double
pi_val
;
std
::
ifstream
fin
(
"test.plot"
);
fin
>>
pi_val
;
std
::
cout
<<
pi_val
<<
std
::
endl
;
fin
.
close
();
}
Event Timeline
Log In to Comment