📄 config.h
字号:
#ifndef CONFIG_H
#define CONFIG_H
#include <iostream>
using namespace std;
class Config {
friend ostream& operator<<(ostream& os, const Config& iht);
public:
virtual ~Config() {};
static Config* getInstance();
void setParameters(int support, float conf, float prob);
int getSupport() const;
float getConfidence() const;
float getProbability() const;
protected:
Config() {};
private:
int support;
float confidence;
float prob;
};
#endif /* CONFIG_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -