📄 article.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 + -