91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

機器學習-深度學習-NLP-算法工程師面試指南-包含知識點解析-面試筆試真題和答案-代碼

資源截圖

代碼片段和文件信息

#include?
using?namespace?std;

class?num_sequence?{
public:
????//?PtrType?是一個指針,指向?num_sequence?的成員函數,
????//??該成員函數必須只接受一個?int?型參數,以及返回類型為?void
????typedef?void?(num_sequence::*PtrType)(int);

????enum?{?cnt_seq?=?2?};??????????????//?預定義了兩種序列
????enum?ns_type?{
????????ns_fibonacci?ns_square
????};

????//?構造函數:默認指向斐波那契數列
????num_sequence():?_pmf(func_tbl[ns_fibonacci])?{?}

????//?調整指針指向
????void?set_sequence(ns_type?nst)?{
????????switch?(nst)?{
????????case?ns_fibonacci:?case?ns_square:
????????????_pmf?=?func_tbl[nst];
????????????break;
????????default:
????????????cerr?<????????}
????}

????void?print(int?n)?{
????????(this->*_pmf)(n);?//?通過指針選擇需要調用的函數
????}

????//?_pmf?可以指向以下任何一個函數
????void?fibonacci(int?n)?{
????????int?f?=?1;
????????int?g?=?1;
????????for?(int?i?=?2;?i?<=?n;?i++)
????????????g?=?g?+?f?f?=?g?-?f;
????????cout?<????}
????
????void?square(int?n)?{
????????cout?<????}

private:
????PtrType?_pmf;
????static?PtrType?func_tbl[cnt_seq];??//?保存所有序列函數的指針
};

//?static?成員變量初始化
num_sequence::PtrType
num_sequence::func_tbl[cnt_seq]?=?{
????&num_sequence::fibonacci
????&num_sequence::square
};

int?main()?{

????auto?ns?=?num_sequence();
????ns.print(5);??//?5
????ns.set_sequence(num_sequence::ns_square);??//?調整函數指針以獲得多態的效果
????ns.print(5);??//?25

????cout?<????system(“PAUSE“);
????return?0;
}


?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\
?????文件?????????248??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\.gitignore
?????目錄???????????0??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-機器學習\
?????文件???????10029??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-機器學習\A-機器學習基礎.md
?????文件???????14628??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-機器學習\A-機器學習實踐.md
?????文件???????48904??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-機器學習\A-機器學習算法.md
?????文件????????7690??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-機器學習\C-專題-集成學習.md
?????目錄???????????0??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-深度學習\
?????文件???????26185??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-深度學習\A-深度學習基礎.md
?????文件?????????738??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-深度學習\A-深度學習實踐.md
?????文件???????17817??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-深度學習\B-專題-CNN.md
?????文件???????18726??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-深度學習\B-專題-RNN.md
?????文件???????17435??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-深度學習\C-專題-優化算法.md
?????文件????????9103??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-深度學習\D-專題-序列建模.md
?????文件??????110422??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-深度學習\《深度學習》整理.md
?????文件????????3038??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\A-深度學習\備忘-術語表.md
?????目錄???????????0??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\
?????文件????????6400??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\A-NLP發展趨勢.md
?????文件???????18399??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\A-自然語言處理基礎.md
?????文件???????12874??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\B-專題-句嵌入.md
?????文件???????25341??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\B-專題-詞向量.md
?????文件?????????231??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\C-專題-多模態.md
?????文件???????34985??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\D-視覺問答-1_綜述.md
?????目錄???????????0??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\深度查詢理解\
?????文件????????7625??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\深度查詢理解\A-綜述.md
?????目錄???????????0??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\深度查詢理解\_assets\
?????文件???????91874??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\深度查詢理解\_assets\TIM截圖20190212181144.png
?????文件???????78444??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\深度查詢理解\_assets\TIM截圖20190213103134.png
?????文件???????93133??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\深度查詢理解\_assets\TIM截圖20190213105813.png
?????文件???????59734??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\深度查詢理解\_assets\TIM截圖20190213120835.png
?????文件??????132247??2019-02-15?01:05??Algorithm_Interview_Notes-Chinese-master\B-自然語言處理\深度查詢理解\_assets\TIM截圖20190213144945.png
............此處省略928個文件信息

評論

共有 條評論