#include <iostream>
#include <string>
using namespace std;
class Date
{
int mo,da,yr;
char *month;
public:
Date(int m=0,int d=0,int y=0);
~Date();
Date& operator=(const Date&);
void display() const;
};
Date::Date(int m,int d,int y)
{
static char *mos[]=
{
"Janua...
#include<iostream>
using namespace std;
class CPoint
{
public:
CPoint(int x=0,int y=0);
int SetTemp();
void Print();
void Print() const;
private:
int m_x;
const int m_y;
static const int m_z;
int m_temp;
};
void main()
{
const int ARRAY_SIZE=5;
CPoint *pCPoint;
pCPoi...
#include <iostream>
#include <string>
using namespace std;
class Internet
{
public:
Internet(char *name,char *url)
{
Internet::name=new char[strlen(name)+1];
Internet::url=new char[strlen(url)+1];
if(name)
{
strcpy(Internet::name,name);
}
if(url)
{
strcpy(Int...
class Shape
{
public:
Shape() {}
~Shape() {}
virtual float GetArea()=0;
virtual float GetPerim()=0;
};
class Circle:public Shape
{
public:
Circle(float radius):itsRadius(radius) {}
float GetArea()
{
return 3.14*itsRadius*itsRadius;
}
float GetPerim()
{
return ...
#include <iostream>
using namespace std;
typedef char string80 [80];
class Data
{
public:
Data() {}
Data(int y, int m, int d)
{
SetData(y,m,d);
}
void SetData(int y,int m,int d)
{
Year=y;
Month=m;
Day=d;
}
string80 &GetStringData(string80 &Data)
{
spr...