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

📄 label.hpp

📁 FreeFem++可以生成高质量的有限元网格。可以用于流体力学
💻 HPP
字号:
#ifndef LABEL_HPP#define LABEL_HPP class Label {  // reference number for the physics  friend inline ostream& operator <<(ostream& f,const Label & r  )    { f <<  r.lab ; return f; }  friend inline istream& operator >>(istream& f, Label & r  )    { f >>  r.lab ; return f; }  public:   int lab;  Label(int r=0):lab(r){}  bool onGamma() const { return lab;}   int operator!() const{return !lab;}   bool operator<(const Label & r) const {return lab < r.lab;}   bool operator==(const Label & r) const {return lab == r.lab;}   bool operator>(const Label & r) const { return lab > r.lab;}   };#endif

⌨️ 快捷键说明

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