Why can't the sentence compile?

S

sword

ofstream outf("data/CaseHistory.dat", iso::app);

I have included the file named iomanip.h
Error message:
[C++ Error] Doctor.cpp(72): E2090 Qualifier 'iso' is not a class or
namespace name
 
F

flagos

sword:

Try:

std::eek:fstream out ( "your_path.txt",std::ios::eek:ut | std::ios::app);

std->is the namespace
ios->the base clase of the class ofstream
app->some typedefed value

got it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top