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

📄 arraylist.h

📁 C语言编写的arraylist
💻 H
字号:

#ifndef ARRAYLIST_H
#define ARRAYLIST_H

struct ArrayList
{
	int * objects;
	int capacity;
	int count;	
};

int listAdd(struct ArrayList* list,void* object);
void listClear(struct ArrayList* list);
void listRemove(struct ArrayList* list,void* object);
void listRemoveAt(struct ArrayList* list,int index);
struct ArrayList* createlist();
int contain(const struct ArrayList* list,void* object);
int indexOf(const struct ArrayList* list,void* object);

typedef struct vector
{
	double *objects;
	int count;
	int capacity;
}vector;

vector* createVector();
void vectorAdd(vector* p,double object);
void vectorClear(vector* p);

#endif 

⌨️ 快捷键说明

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