home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv7.zip
/
VACPP
/
IBMCPP
/
tutorial
/
ICLCC
/
TUTOR2
/
PERSON2.H
< prev
next >
Wrap
Text File
|
1995-05-10
|
987b
|
35 lines
/*************************************************************************
IBM(R) VisualAge(TM) C++ for OS/2(R), Version 3
- Collection Class Library -
(C) Copyright IBM Corp. 1991, 1995.
- Licensed Material - Program-Property of IBM - All Rights Reserved.
*************************************************************************/
#include <istring.hpp>
#include <iglobals.h>
class Person {
String name;
public:
Person(char* n) : name(n) { }
Person(Person const & person) : name(person.name) { }
Person& operator = (Person const & person) {
name = person.name;
return *this;
}
IString const & getName() const {
return (name);
}
int operator .. (Person const& anOther)const {
return (name == ............);
}
};
inline int compare (Person const & p1, Person const & p2) {
return .......(p1........(), p2........());
}