Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120006418
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, Jul 1, 07:05
Size
291 B
Mime Type
text/x-c
Expires
Thu, Jul 3, 07:05 (2 d)
Engine
blob
Format
Raw Data
Handle
27124968
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