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

📄 whitt.cpp

📁 A C++ class library for scientific computing
💻 CPP
字号:
#include <blitz/array.h>using namespace blitz;       class Base {       public:         virtual void multiply(Array<int,1>& array) const=0;       };       class Derived1 : public Base {       public:         Derived1(){}         void multiply(Array<int,1>& array) const {array*=1;}       };       class Derived2 : public Base {       public:         Derived2(){}         void multiply(Array<int,1>& array) const {array*=2;}       };       Array<int,1>& operator*=(Array<int,1>& array, const Derived1& object) {         object.multiply(array);         return array;       }int main(){       Array<int,1> array(5);       array=1;       Derived1 derived1;       array*=derived1;}

⌨️ 快捷键说明

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