Files
2024-11-14 10:48:14 +08:00

40 lines
588 B
C++

// P2.cpp: implementation of the CP2 class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Test.h"
#include "P2.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CP2::CP2()
{
x=0;
y=0;
w=1.0;
c=CRGB(1.0,1.0,1.0);
}
CP2::~CP2()
{
}
CP2::CP2(double x,double y)
{
this->x=x;
this->y=y;
this->w=1.0;
}