Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91095380
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, Nov 7, 20:36
Size
291 B
Mime Type
text/x-c
Expires
Sat, Nov 9, 20:36 (2 d)
Engine
blob
Format
Raw Data
Handle
22195616
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