Ofstream not identified

Hi,
I have got a prewritten project which I need to modify.
I need to see whats happening so I am writing the output in a text file.I have included <fstream> and created ofstreams object,but there's an error 'undeclared identifier ofstream'.Why is it?
I included the library in the class Iam working and I created ofstreams object in the function Iam working on.I still have to search for the main function in the whole preogram.
Thanks!
Last edited on
use std::ofstream (you probably need to add the std:: prefix).
Topic archived. No new replies allowed.