I think you mean:
#include <iostream> #include <fstream> using std::cin; using std::cout; using std::iostream; using std::ifstream; int main() { // your program goes here }
Huh??? Isn't that the same thing I posted??? Both are incorrect. std::iostream should have been std::ofstream;