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

📄 source.h

📁 vc的源代码程序的基于最小特征向量的元素的集合方法的程序源代码
💻 H
字号:
#ifndef SOURCE_H#define SOURCE_H#include <stdio.h>#include <stdlib.h>#include <malloc.h>#include <iostream.h>#include "util.h"#define MAXLEN 4096typedef float Description;class Source {private:	FILE *handle;	char *fname;	char delimiter[1024];	char *where, *buffer;	int n_Instances;    // the number of rows	int n_Descriptions; // the number of columnspublic:	Source(char delim[]=",", char *fname=NULL);		void init(); // reset the file pointer to the beginning	Description readDescription(); // read a description	void setDelimiter(char *delim) { strcpy(delimiter, delim); }	int numOfInstances() { return n_Instances; }	int numOfDescriptions() { return n_Descriptions; }	// status() will give a status after read a char from the	// input	Description *readOneInstance();	char *getFileName() { return fname; }        FILE* getFileHandle() { return handle; }private:	int countInstances();	int countDescriptions(); // class column also counted};#endif

⌨️ 快捷键说明

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