⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 watchlist.cpp

📁 此程序实现了类似protel电路画图程序。
💻 CPP
字号:
// WatchList.cpp: implementation of the CWatchList class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Pointtest.h"
#include "WatchList.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CWatchList::CWatchList()
{

}

CWatchList::~CWatchList()
{

}
void CWatchList::DeleteWatch(MyWatch* watch)
{
	POSITION Pos,OldPos;
	Pos= GetHeadPosition();
	while(Pos != NULL){
		OldPos = Pos;
		if(watch == (MyWatch *)GetNext(pos)){
			delete watch;
			RemoveAt(OldPos);
		}
	}	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -