31 lines
542 B
C++
31 lines
542 B
C++
// P3.cpp: implementation of the CP3 class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#include "stdafx.h"
|
|
#include "Test.h"
|
|
#include "P3.h"
|
|
|
|
#ifdef _DEBUG
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[]=__FILE__;
|
|
#define new DEBUG_NEW
|
|
#endif
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
// Construction/Destruction
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
CP3::CP3()
|
|
{
|
|
z=0.0;
|
|
}
|
|
|
|
CP3::~CP3()
|
|
{
|
|
|
|
}
|
|
CP3::CP3(double x,double y,double z):CP2(x,y)
|
|
{
|
|
this->z=z;
|
|
} |