-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcharstr.h
33 lines (27 loc) · 1.23 KB
/
charstr.h
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
28
29
30
31
32
33
/******************************************************************************************/
/**** FILE: charstr.h ****/
/**** Michael Mandell 08/03/06 ****/
/******************************************************************************************/
#ifndef CHARSTR_H
#define CHARSTR_H
#include <iostream>
std::ostream& operator<<(std::ostream& s, class CharStrClass r);
/******************************************************************************************/
/**** CLASS: CharStrClass ****/
/******************************************************************************************/
class CharStrClass
{
public:
CharStrClass();
~CharStrClass();
char *getStr();
void setStr(char *p_str);
int operator==(CharStrClass val);
int operator>(CharStrClass val);
int operator<<(CharStrClass val);
friend std::ostream& operator<<(std::ostream& s, class CharStrClass r);
private:
char *str;
};
/******************************************************************************************/
#endif