?? whitt.cpp
字號(hào):
#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;}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -