Re: [Dev-C++] problems to overload operator << and >>
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2005-09-25 21:17:26
|
You should use std::istream and std::ostream Google a bit about namespaces in C++. /Per W On Sun, 25 Sep 2005, Andrei R. Thomaz wrote: > hello list, > > I am trying to overload the operators << and >> to save and read a > class I am coding, called Preenchimento, but I am having some problems. > When I try to compile the file, I get these errors: > > in file included from preenchimento.cpp:15: > preenchimento.h:33: error: expected constructor, destructor, or type > conversion before '&' token > preenchimento.h:33: error: expected `,' or `;' before '&' token |