S
S
Sergey Chistyakov2014-10-15 01:46:30
Qt
Sergey Chistyakov, 2014-10-15 01:46:30

Support for standard streams in Qt?

I create a simple C++ project in Qt, I include the iostream.h library, and then I want to overload the "<<" operation on an object of the ostream class, but it doesn't work. Qt doesn't even see that such a class exists. I included iostream.h, so the istream and ostream classes must be defined? What's the matter?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2014-10-15
@piro1107

Program text and error text?
I believe that after all std::istream and std::ostream.

D
Drimler, 2014-10-20
@Drimler

and in Qt iostream is connected as <iostream.h>and not <iostream>..?
And of course, don't forget about namespaces.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question