class BasicString {
public:
BasicString();
BasicString(char);
BasicString(char *);
BasicString(const BasicString&);
~BasicString();
int length();
void clear();
friend ostream& operator<<(ostream&, BasicString&);
friend istream& operator>>(istream&, BasicString&);
protected:
char *_data;
int _length;
};
/home/flint/code/l2k/basic_string.h|15|error: ISO C++ forbids declaration of ‘ostream’ with no type|
/home/flint/code/l2k/basic_string.h|15|error: expected ‘;’ before ‘&’ token|
/home/flint/code/l2k/basic_string.h|16|error: ISO C++ forbids declaration of ‘istream’ with no type|
/home/flint/code/l2k/basic_string.h|16|error: ‘istream’ is neither function nor member function; cannot be declared friend|
/home/flint/code/l2k/basic_string.h|16|error: expected ‘;’ before ‘&’ token|
/home/flint/code/l2k/basic_string.cpp|46|error: expected constructor, destructor, or type conversion before ‘&’ token|
/home/flint/code/l2k/basic_string.cpp|52|error: expected constructor, destructor, or type conversion before ‘&’ token|
/home/flint/code/l2k/basic_string.cpp||In constructor ‘Complex::Complex()’:|
/home/flint/code/l2k/basic_string.cpp|60|error: invalid use of ‘class BasicString’|
||=== Build finished: 8 errors, 0 warnings ===|