The iostream library is part of the c++ standard library. If you're using vs, just install the c++ feature or directly install the visual c++ redistributable package. Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not.
fstream. This data type represents the file stream generally, and has the capabilities of both ofstream and ifstream which means it can create files, write information to files, and read information from files.
Header files available in C++ for Input/Output operations are: iostream: iostream stands for standard input-output stream. This header file contains definitions of objects like cin, cout, cerr, etc. iomanip: iomanip stands for input-output manipulators.
An fstream is an iostream which writes to and reads from a file. So: every fstream is an iostream but not every iostream is an fstream.
I have a 32 bit machine and I am running Ubuntu 9.10 on it. I have the latest gcc compiler. The problem that I am facing is that I have a library developed in 2002. The code is correct for sure but when I try to built it, it gives me errors like iostream.h cannot be found, error: fstream.h: No such file or directory etc etc. There are lots of files hence I cannot change them.
Can these errors be solved if solved I install gcc 3.0 ? If yes how to install it over my existing gcc compiler.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With