// Justin C. Miller
// University of Wisconsin Oshkosh
// Made for: http://www.geocities.com/neonprimetime.geo/index.html
// Date: 2001
// Borland Builder 4.0
// MUST PLACE FRIEND DEFINITION INSIDE CLASS FOR VISUALL C++
#ifndef person_h
#define person_h
#include
#include
#include
using namespace std ;
class person{
private:
string name ;
int age ;
public:
person(string n, int ag)
{ name = n ; age = ag;}
void print()
{cout << name << " " << age << endl ;}
string getname()
{return name;}
int getage()
{return age;}
friend ostream& operator<<(ostream& output, const person& aperson)
{
output << "Name:" << aperson.name << " Age:" << aperson.age << endl ;
return output ;
}
friend istream& operator>>(istream& input, person& aperson)
{
input >> aperson.name ;
input.ignore() ;
input >> aperson.age ;
return input ;
}
};
#endif
               (
geocities.com/neonprimetime.geo/cpp)                   (
geocities.com/neonprimetime.geo)