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

📄 article.h

📁 对文章的字母个数,关键字个数进行统计,浏览文章,删除特定字符串,输入文章等进行管理,采用链表实现.
💻 H
字号:
#ifndef Article_H_
#define Article_H_
#include "Node.h"
#include <iostream>
#include<stdlib.h>
#include<string>
using namespace std;

class Article{                              
public:                                        
	Article();
	bool empty()const;						  //判断链表是否为空
	int  size()const;                             //记录总数
	void clear();							//清空链表
	~Article();
	void add(char data); 
	void remove(int m);                        
	void show();                    
	void printCount();
	int countWord(string str);
	void removeWord(string str);
	void adjustArticle();			//调整文章
private:                                      
	Node *head;
    int n;                              //序号
	int countLetter();
	int countDigit();
	int countSpace();
	int countAll();                                
	void print(Node *p);                      
	Node *find(int num);
};

#endif

⌨️ 快捷键说明

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