Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90023483
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
Mon, Oct 28, 14:02
Size
291 B
Mime Type
text/x-c
Expires
Wed, Oct 30, 14:02 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
21995178
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