is anyone having an idea on how you going to use ifstream & ofstream without using the header of it.

Recommended Answers

All 2 Replies

You aren't going to use ifstream or ofstream without including the relevant header. That is what the header is for, to allow you to use the class/declarations.

Pasting the contents of the header into your file would do it, assuming you use the same header that came with your compiler. But all in all, that would be silly since as Banfa said, that's what the headers are for.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.