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

📄 table.h

📁 一段修改C语言的代码
💻 H
字号:
#ifndef TABLE_H#define TABLE_H#include <vector>#include <string>typedef struct {int d0; int d1;} newfloat;/***************************************************Table************************************************************/class Table{  public:    Table();    virtual ~Table();    int inserer(const char *nom, const char *type, newfloat valeur);    int getPosition(const char *nom) const;    const char * getNom(unsigned int pos) const;    newfloat getValeur(unsigned int pos) const;    const char * getType(unsigned int pos) const;    void setValeur(unsigned int pos, newfloat elt) ;    void clear();  private:        struct Case    {	std::string type;        std::string nom;        newfloat valeur;    };    typedef std::vector<Case> vectorCase;    vectorCase m_tab;};/********************************************************************************************************************//****************************************************Func************************************************************/	struct Parametre	{		std::string type;		std::string iden;	};	typedef std::vector<Parametre> FuncPara;    struct FuncStr    {        std::string nom;	std::string type;        FuncPara para;    };    typedef std::vector<FuncStr> Function;class Func{  public:    Func();    virtual ~Func();	int inserer(const FuncStr func);	int getPosition(const char *nom) const;/*    const char * getNom(unsigned int pos) const;    newfloat getValeur(unsigned int pos) const;    const char * getType(unsigned int pos) const;*/  private:        typedef std::vector<FuncStr> Function;    Function m_func;};/********************************************************************************************************************/#endif

⌨️ 快捷键说明

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