Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90330557
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
Thu, Oct 31, 14:30
Size
291 B
Mime Type
text/x-c
Expires
Sat, Nov 2, 14:30 (2 d)
Engine
blob
Format
Raw Data
Handle
22054204
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