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

📄 dictionr.hxx

📁 不错的国外的有限元程序代码,附带详细的manual,可以节省很多的底层工作.
💻 HXX
字号:
//   ************************
//   *** CLASS DICTIONARY ***
//   ************************
 

#ifndef dictionr_hxx

#include "pair.hxx"
#include <stdio.h>


class Dictionary
/*
   This class implements a linked list whose entries are Pairs (see below).
   Dictionaries are typically used by degrees of freedom for storing their
   unknowns.
 DESCRIPTION :
   A dictionary stores its pairs in a linked list form. It knows the first
   pair (attribute 'first') of the list. It also knows the last one (attri-
   bute 'last') in order to append fastly an additional pair.
 TASK :
   Storing pairs (method 'add') and returning the value of a pair (method
   'at').
*/
{
   enum { FALSE , TRUE } ;

   protected :
      Pair*  first ;
      Pair*  last ;

   public :
      Dictionary ()  { first=NULL ; last=NULL ;}
      ~Dictionary () ;

      Pair*        add (char,double) ;
      double&      at (char) ;
      int          includes (char) ;
      void         printYourself () ;
} ;

#define dictionr_hxx
#endif








⌨️ 快捷键说明

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