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

📄 dataseg.c

📁 Solaris环境下的数据挖掘算法:birch聚类算法。该算法适用于对大量数据的挖掘。
💻 C
字号:
/*  ========================================================================  DEVise Data Visualization Software  (c) Copyright 1992-1996  By the DEVise Development Group  Madison, Wisconsin  All Rights Reserved.  ========================================================================  Under no circumstances is this software to be copied, distributed,  or altered in any way without prior permission from the DEVise  Development Group.*//*  Implementation of DataSeg (data segment class). *//*  $Id: DataSeg.c,v 1.2 1996/08/05 19:48:53 wenger Exp $  $Log: DataSeg.c,v $  Revision 1.2  1996/08/05 19:48:53  wenger  Fixed compile errors caused by some of Kevin's recent changes; changed  the attrproj stuff to make a .a file instead of a .o; added some more  TData file writing stuff; misc. cleanup.  Revision 1.1  1996/06/04 14:21:40  wenger  Ascii data can now be read from session files (or other files  where the data is only part of the file); added some assertions  to check for pointer alignment in functions that rely on this;  Makefile changes to make compiling with debugging easier. */#define _DataSeg_C_//#define DEBUG#include <string.h>#include "DataSeg.h"#include "Util.h"/* * Static global variables. */#if !defined(lint) && defined(RCSID)static char		rcsid[] = "$RCSfile: DataSeg.c,v $ $Revision: 1.2 $ $State: Exp $";#endifstatic char *	srcFile = __FILE__;char *		DataSeg::_label = NULL;char *		DataSeg::_filename = NULL;long		DataSeg::_offset = 0;long		DataSeg::_length = 0;/*------------------------------------------------------------------------------ * function: DataSeg::Set * Set the information about a data segment. */voidDataSeg::Set(char *label, char *filename, long offset, long length){	if (label == NULL) label = "";	if (filename == NULL) filename = "";	DO_DEBUG(printf("DataSeg::Set(%s, %s, %ld, %ld)\n", label, filename,		offset, length));	if (_label != NULL)	{		delete _label;		_label = NULL;	}	if (label != NULL) _label = strdup(label);	if (_filename != NULL)	{		delete _filename;		_filename = NULL;	}	if (filename != NULL) _filename = strdup(filename);	_offset = offset;	_length = length;	return;}/*------------------------------------------------------------------------------ * function: DataSeg::Get * Get the information about a data segment. */voidDataSeg::Get(char *&label, char *&filename, long &offset, long &length){	DO_DEBUG(printf("DataSeg::Get()\n"));	label = _label;	filename = _filename;	offset = _offset;	length = _length;	return;}/*============================================================================*/

⌨️ 快捷键说明

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