亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? array1.h

?? 復數(shù)運算庫
?? H
字號:
// file array1.h// A very simple templated array class// The C language doesn't provide a satisfactory dynamic array facility;// This is a very simple C++ one// do 1 and 2 dimensions// cut down version#include "include.h"#include "boolean.h"#include "myexcept.h"#ifndef ARRAY1_H                        // don't include twice#define ARRAY1_Htemplate <class T>class array1{private:protected:   T* a;                                // pointer to the array   int n;                               // length of the arraypublic:   array1() : a(0), n(0) {}             // build an array, length zero   array1(int xn);                      // build an array length xn   ~array1();                           // return the space to memory   T& operator()(int i);                // access element of the array   T operator()(int i) const;           // access element of constant array   void operator=(T ai);                // set the array equal to a constant   void operator=(const array1<T>& b);  // copy the elements of an array   array1(const array1<T>& b);          // new array equal to an existing one   int size() const { return n; }       // return the size of the array   void resize(int xn);                 // change the size of the array   T* data() { return a; }              // pointer to the data   const T* data() const { return a; }  // pointer to the data};// 2 dimensional array classtemplate <class T>class array2 : public array1<T>{protected:   int n_rows, n_cols;public:   array2(int x_n_rows, int x_n_cols);   T& operator()(int i, int j);			      // access element of the array   T operator()(int i, int j) const;			      // access element of constant array   void operator=(T ai);    // set the array equal to a constant   void operator=(const array2<T>& b);			      // copy the elements of an array   array2(const array2<T>& b);			      // make a new array equal to an existing one   int N_rows() const { return n_rows; }   int N_cols() const { return n_cols; }};// construct a new array of length xn. Check that xn is non-negative and// that space is availabletemplate <class T>array1<T>::array1(int xn) : n(xn){   if (n < 0) Throw(Logic_error("invalid array length"));   else if (n == 0) a = 0;   else   {      a = new T [n];      if (!a) Throw(Bad_alloc());   }}// destroy an array - return its space to memorytemplate <class T>array1<T>::~array1()   { if (a) delete [] a; }// access an element of an array; return a "reference" so elements// can be modified.// check index is within range// in this array class the index runs from 0 to n-1template <class T>void array1<T>::resize(int xn){   if (a) delete [] a;   n = xn;   if (n < 0) Throw(Logic_error("invalid array length"));   else if (n == 0) a = 0;   else   {      a = new T [n];      if (!a) Throw(Bad_alloc());   }}template <class T>T& array1<T>::operator()(int i){   if (i < 0 || i >= n) Throw(Logic_error("array index out of range"));   return a[i];}// same thing again but for arrays declared constant so we can't// modify its elementstemplate <class T>T array1<T>::operator()(int i) const{   if (i < 0 || i >= n) Throw(Logic_error("array index out of range"));   return a[i];}// set all the elements equal to a given valuetemplate <class T>void array1<T>::operator=(T ai)   {  for (int i = 0; i < n; i++) a[i] = ai; }// set the elements equal to those of another array.// check the arrays are of the same lengthtemplate <class T>void array1<T>::operator=(const array1<T>& b){   if (b.n != n) Throw(Logic_error("array lengths differ in copy"));   for (int i = 0; i < n; i++) a[i] = b.a[i];}// construct a new array equal to an existing array// check that space is availabletemplate <class T>array1<T>::array1(const array1<T>& b) : n(b.n){   if (n == 0) a = 0;   else   {      a = new T [n];      if (!a) Throw(Bad_alloc());      for (int i = 0; i < n; i++) a[i] = b.a[i];   }}// two dimensional arraytemplate <class T>array2<T>::array2(int x_n_rows, int x_n_cols)   : array1<T>(x_n_rows*x_n_cols), n_rows(x_n_rows), n_cols(x_n_cols) {}template <class T>T& array2<T>::operator()(int i, int j){   if (i < 0 || i >= n_rows || j < 0 || j >= n_cols)      Throw(Logic_error("array index out of range"));   return a[i+j*n_rows];}template <class T>T array2<T>::operator()(int i, int j) const{   if (i < 0 || i >= n_rows || j < 0 || j >= n_cols)      Throw(Logic_error("array index out of range"));   return a[i+j*n_rows];}template <class T>void array2<T>::operator=(T ai) { array1<T>::operator=(ai); }template <class T>void array2<T>::operator=(const array2<T>& b){   if (n_rows != b.n_rows && n_cols != b.n_cols)      Throw(Logic_error("array lengths differ in copy"));      for (int i = 0; i < n; i++) a[i] = b.a[i];}template <class T>array2<T>::array2(const array2<T>& b)   : array1<T>(b), n_rows(b.n_rows), n_cols(b.n_cols) {}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
不卡一区中文字幕| 亚洲成av人在线观看| 肉肉av福利一精品导航| 国产又粗又猛又爽又黄91精品| 99精品一区二区三区| 久久综合色之久久综合| 日韩成人一区二区| 日本伦理一区二区| 国产精品网站在线观看| 国产一区二区美女诱惑| 欧美一区欧美二区| 亚洲综合小说图片| www.色综合.com| 成人免费毛片高清视频| 亚洲视频免费在线| 日韩视频一区二区三区在线播放| 亚洲成人激情综合网| 91网址在线看| 日韩理论片在线| eeuss鲁片一区二区三区在线看| 久久精品这里都是精品| 精品一区二区三区免费毛片爱 | 成人av集中营| 在线电影一区二区三区| 一区二区三区成人| 91免费国产在线| 国产精品国产三级国产普通话三级| 国产最新精品免费| 日韩免费看的电影| 蜜芽一区二区三区| 欧美一二三区精品| 免费欧美在线视频| 欧美大片日本大片免费观看| 免费观看日韩av| 日韩欧美在线一区二区三区| 日产欧产美韩系列久久99| 91精品国产入口| 日产欧产美韩系列久久99| 91麻豆精品国产| 免费在线观看一区| 精品国内二区三区| 韩国一区二区视频| 国产视频视频一区| 成人精品国产福利| 亚洲毛片av在线| 91成人免费在线视频| 一区二区不卡在线播放 | 成人av动漫网站| 中文字幕不卡的av| 91麻豆免费视频| 亚洲一区二区不卡免费| 7777精品伊人久久久大香线蕉完整版 | 91香蕉视频污| 一区二区三区精品在线观看| 在线观看中文字幕不卡| 亚洲成人福利片| 欧美一级生活片| 久久99国产精品久久99果冻传媒| 亚洲精品在线电影| 成人h动漫精品一区二区| 日韩美女啊v在线免费观看| 91麻豆精东视频| 毛片基地黄久久久久久天堂| 日本一区二区电影| 午夜在线成人av| 五月激情丁香一区二区三区| 一区二区三区在线视频观看58| 久久精品人人爽人人爽| 91精品国产aⅴ一区二区| 91麻豆高清视频| 波多野结衣中文字幕一区二区三区| 亚洲bt欧美bt精品777| 成人av电影在线播放| 欧美三级韩国三级日本一级| ...中文天堂在线一区| 欧美亚洲日本国产| 日韩精品乱码免费| 精品国产凹凸成av人网站| 大尺度一区二区| 亚洲一区中文日韩| 日韩一区二区高清| 国产成人aaaa| 一区二区三区蜜桃网| 日韩三级免费观看| 成人午夜在线播放| 亚洲 欧美综合在线网络| 欧美mv和日韩mv的网站| 91香蕉国产在线观看软件| 日本色综合中文字幕| 欧美极品少妇xxxxⅹ高跟鞋| 欧美综合视频在线观看| 老司机精品视频一区二区三区| 国产精品美女久久久久久久久| 欧美日韩一区久久| 国产成人无遮挡在线视频| 亚洲综合丝袜美腿| 精品日韩一区二区| 91成人网在线| 国产成人精品影视| 亚洲aⅴ怡春院| 国产精品国产自产拍在线| 日韩一区二区中文字幕| 在线视频一区二区三区| 国产精品影视在线观看| 婷婷亚洲久悠悠色悠在线播放| 国产精品美女久久久久久久久久久 | 一本大道久久精品懂色aⅴ| 男女性色大片免费观看一区二区| 自拍偷拍亚洲欧美日韩| 欧美v日韩v国产v| 99国内精品久久| 国产精品亲子乱子伦xxxx裸| 精品在线亚洲视频| 精品国产亚洲在线| 一区二区三区成人| 国产一区视频在线看| 色哦色哦哦色天天综合| 久久视频一区二区| 肉丝袜脚交视频一区二区| 成人蜜臀av电影| 日韩精品一区在线| 亚洲国产精品影院| 欧美中文字幕一二三区视频| 欧美日韩一区二区三区在线看| 国产成人免费视频一区| 另类的小说在线视频另类成人小视频在线 | av色综合久久天堂av综合| 麻豆精品视频在线观看视频| 亚洲一区二区三区国产| 日韩理论片网站| 亚洲国产精品精华液2区45| 亚洲精品一区二区三区蜜桃下载 | 亚洲欧洲在线观看av| 久久久久久久久久久久久夜| 6080日韩午夜伦伦午夜伦| 色94色欧美sute亚洲线路一ni| 风间由美一区二区三区在线观看 | 一区二区三区中文在线观看| 中文一区一区三区高中清不卡| 欧美精品一区二区久久久| 日韩精品综合一本久道在线视频| 欧美裸体bbwbbwbbw| 欧美日韩中文字幕精品| 在线免费亚洲电影| 色哟哟一区二区三区| 99riav一区二区三区| 不卡一卡二卡三乱码免费网站| 国产在线一区二区综合免费视频| 蜜臀av国产精品久久久久| 日本视频免费一区| 蜜臀av性久久久久蜜臀av麻豆| 日日嗨av一区二区三区四区| 天堂va蜜桃一区二区三区| 亚洲高清在线精品| 午夜精品视频在线观看| 亚洲成人激情社区| 国产精品私人影院| 欧美自拍偷拍午夜视频| 国产成人综合精品三级| 国产亚洲一区二区三区在线观看| 欧美亚洲丝袜传媒另类| 日韩av在线发布| 久久只精品国产| 成人av电影在线观看| 午夜精品国产更新| 精品不卡在线视频| 国产精品1区2区3区| 亚洲精品ww久久久久久p站| 欧美特级限制片免费在线观看| 日韩中文欧美在线| 亚洲美女一区二区三区| 国产精品久久久99| 国产亚洲美州欧州综合国| 国产精品免费看片| 亚洲视频免费在线观看| 亚洲国产成人va在线观看天堂| 日韩制服丝袜先锋影音| 黑人巨大精品欧美一区| 成人丝袜18视频在线观看| 国产清纯白嫩初高生在线观看91 | 成人污视频在线观看| 成人av电影免费在线播放| 一道本成人在线| 国产欧美中文在线| av亚洲精华国产精华精华| a级精品国产片在线观看| av一本久道久久综合久久鬼色| 欧洲亚洲精品在线| 日韩欧美精品在线视频| 欧美videos大乳护士334| 亚洲一区二区三区影院| 日本成人在线看| 国产精品 日产精品 欧美精品| 96av麻豆蜜桃一区二区| 欧美日韩精品三区| 久久一日本道色综合| 亚洲天堂a在线| 热久久久久久久| 欧美精品一区二区精品网| 91麻豆精品国产91久久久久久 |