Re: [Dev-C++] no match for istream & >> {unknown type}
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Robert D B. <lon...@ju...> - 2001-02-19 21:00:33
|
I am not a real expert on c++, however you migh try this and let me know.
class Student_info {
public:
Student_info();
Student_info(std::istream&);
std::string name() const {return n;}
bool valid() const {return !homework.empty();}
std::istream& read(std::istream&);
double grade() const;
private:
std::string n;
double midterm, final;
std::vector<double> homework;
std::istream& is; ADD
};
lonestar36
On Mon, 19 Feb 2001 19:55:26 -0000 "softnasolutions-ltd.fsbusiness.co.uk"
<so...@so...> writes:
> I have tried it but i still have the error. I have attached all my
> file and
> i will be most grateful if you can have a look and tell me what is
> wrong.
>
> ----- Original Message -----
> From: <Dou...@ao...>
> To: <dev...@li...>
> Sent: Monday, February 19, 2001 3:24 PM
> Subject: Re: [Dev-C++] no match for istream & >> {unknown type}
>
>
> > The include file needed for the istream class is fstream. The
> include
> file entry would therefore be
> > #include <fstream>
> >
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
>
|