class BasicString public BasicString BasicString char BasicString char

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 ===|