www.pudn.com > MyGame.rar > Stars.cpp


// Stars.cpp: implementation of the CStars class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#include "stdafx.h" 
#include "MyGame.h" 
#include "Stars.h" 
 
#ifdef _DEBUG 
#undef THIS_FILE 
static char THIS_FILE[]=__FILE__; 
#define new DEBUG_NEW 
#endif 
#ifndef M_PI 
#define M_PI 3.14159265358979323846 
#endif 
////////////////////////////////////////////////////////////////////// 
// Construction/Destruction 
////////////////////////////////////////////////////////////////////// 
 
CStars::~CStars() 
{ 
 
} 
CStars::CStars(int starn) 
{ 
	cc=0; 
	S.resize(starn); 
	C.resize(starn+10); 
	for(int i=0;i