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

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

Public-Resource

  • java入門編程合集

    題目:古典問題:有一對兔子,從出生后第3個月起每個月都生一對兔子,小兔子長到第三個月后每個月又生一對兔子,假如兔子都不死,問每個月的兔子總數為多少?    //這是一個菲波拉契數列問題 public class lianxi01 { public static void main(String[] args) { System.out.println("第1個月的兔子對數:    1"); System.out.println("第2個月的兔子對數:    1"); int f1 = 1, f2 = 1, f, M=24;      for(int i=3; i<=M; i++) {       f = f2;       f2 = f1 + f2;       f1 = f;       System.out.println("第" + i +"個月的兔子對數: "+f2);          } } } 【程序2】    題目:判斷101-200之間有多少個素數,并輸出所有素數。 程序分析:判斷素數的方法:用一個數分別去除2到sqrt(這個數),如果能被整除, 則表明此數不是素數,反之是素數。    public class lianxi02 { public static void main(String[] args) {     int count = 0;     for(int i=101; i<200; i+=2) {      boolean b = false;      for(int j=2; j<=Math.sqrt(i); j++)      {         if(i % j == 0) { b = false; break; }          else           { b = true; }      }         if(b == true) {count ++;System.out.println(i );}                                   }     System.out.println( "素數個數是: " + count); } } 【程序3】    題目:打印出所有的 "水仙花數 ",所謂 "水仙花數 "是指一個三位數,其各位數字立方和等于該數本身。例如:153是一個 "水仙花數 ",因為153=1的三次方+5的三次方+3的三次方。 public class lianxi03 { public static void main(String[] args) {      int b1, b2, b3; 

    標簽: java 編程

    上傳時間: 2017-12-24

    上傳用戶:Ariza

  • 道理特分解法

    #include "iostream" using namespace std; class Matrix { private: double** A; //矩陣A double *b; //向量b public: int size; Matrix(int ); ~Matrix(); friend double* Dooli(Matrix& ); void Input(); void Disp(); }; Matrix::Matrix(int x) { size=x; //為向量b分配空間并初始化為0 b=new double [x]; for(int j=0;j<x;j++) b[j]=0; //為向量A分配空間并初始化為0 A=new double* [x]; for(int i=0;i<x;i++) A[i]=new double [x]; for(int m=0;m<x;m++) for(int n=0;n<x;n++) A[m][n]=0; } Matrix::~Matrix() { cout<<"正在析構中~~~~"<<endl; delete b; for(int i=0;i<size;i++) delete A[i]; delete A; } void Matrix::Disp() { for(int i=0;i<size;i++) { for(int j=0;j<size;j++) cout<<A[i][j]<<" "; cout<<endl; } } void Matrix::Input() { cout<<"請輸入A:"<<endl; for(int i=0;i<size;i++) for(int j=0;j<size;j++){ cout<<"第"<<i+1<<"行"<<"第"<<j+1<<"列:"<<endl; cin>>A[i][j]; } cout<<"請輸入b:"<<endl; for(int j=0;j<size;j++){ cout<<"第"<<j+1<<"個:"<<endl; cin>>b[j]; } } double* Dooli(Matrix& A) { double *Xn=new double [A.size]; Matrix L(A.size),U(A.size); //分別求得U,L的第一行與第一列 for(int i=0;i<A.size;i++) U.A[0][i]=A.A[0][i]; for(int j=1;j<A.size;j++) L.A[j][0]=A.A[j][0]/U.A[0][0]; //分別求得U,L的第r行,第r列 double temp1=0,temp2=0; for(int r=1;r<A.size;r++){ //U for(int i=r;i<A.size;i++){ for(int k=0;k<r-1;k++) temp1=temp1+L.A[r][k]*U.A[k][i]; U.A[r][i]=A.A[r][i]-temp1; } //L for(int i=r+1;i<A.size;i++){ for(int k=0;k<r-1;k++) temp2=temp2+L.A[i][k]*U.A[k][r]; L.A[i][r]=(A.A[i][r]-temp2)/U.A[r][r]; } } cout<<"計算U得:"<<endl; U.Disp(); cout<<"計算L的:"<<endl; L.Disp(); double *Y=new double [A.size]; Y[0]=A.b[0]; for(int i=1;i<A.size;i++ ){ double temp3=0; for(int k=0;k<i-1;k++) temp3=temp3+L.A[i][k]*Y[k]; Y[i]=A.b[i]-temp3; } Xn[A.size-1]=Y[A.size-1]/U.A[A.size-1][A.size-1]; for(int i=A.size-1;i>=0;i--){ double temp4=0; for(int k=i+1;k<A.size;k++) temp4=temp4+U.A[i][k]*Xn[k]; Xn[i]=(Y[i]-temp4)/U.A[i][i]; } return Xn; } int main() { Matrix B(4); B.Input(); double *X; X=Dooli(B); cout<<"~~~~解得:"<<endl; for(int i=0;i<B.size;i++) cout<<"X["<<i<<"]:"<<X[i]<<" "; cout<<endl<<"呵呵呵呵呵"; return 0; } 

    標簽: 道理特分解法

    上傳時間: 2018-05-20

    上傳用戶:Aa123456789

  • 驅動器123

    ble Logic Controller,可編程邏輯控制器,一種數字運算操作的電子系統,專為在工業環境應用而設計的。它采用一類可編程的存儲器,用于其內部存儲程序,執行邏輯運算,順序控制,定時,計數與算術操作等面向用戶的指令,并通過數字或模擬式輸入/輸出控制各種類型的機械或生產過程。是工業控制的核心部分。   另外PLC還有以下幾個名稱:   PLC = Power Line Communication,電力線通信,即我們俗稱的“電力線上網”。   PLC = Public Listed Co

    標簽: 驅動器

    上傳時間: 2018-06-27

    上傳用戶:454545

  • 模擬電子技術基礎

    這是一個至深老教師總結的模擬電子資料,有興趣可以一看

    標簽: 模電

    上傳時間: 2018-11-11

    上傳用戶:chengwei8556

  • c++從入門到精通.pdf電子書 第二版

    我們編寫的程序由兩個主要方面組成 1 算法的集合就是將指令組織成程序來解決某個特定的問題 2 數據的集合算法在這些數據上操作以提供問題的解決方案 縱觀短暫的計算機發展史這兩個主要方面算法和數據一直保持不變發展演化的 是它們之間的關系就是所謂的程序設計方法programming paradigm 在過程化程序設計方法procedural programming 中一個問題可直接由一組算法來建 立模型例如公共圖書館的資料借閱/登記check out/check in 系統是由一系列過程表現 出來的其中兩個主要的過程是資料的借閱和登記這些數據被獨立存儲起來我們既可以 在某個全局位置上訪問這些數據或者把數據傳遞給過程以便它能夠訪問這些數據Fortran C 和 Pascal 是三種著名的過程語言C++也支持過程化程序設計單獨的過程如check_in() check_out() over_due() fine()等等都被稱為函數第三篇將集中討論C++對過程化程序 設計方法的支持尤其將重點討論函數函數模板和通用算法 在20 世紀70 年代程序設計的焦點從過程化程序設計方法轉移到了抽象數據類型 abstract data type 簡寫為ADT 的程序設計上現在通常稱之為基于對象(object based 的程序設計在基于對象的程序設計方法中我們通過一組數據抽象來建立問題的模型在 C++中我們把這些抽象稱為類class 例如在這種方法下圖書館資料借閱登記系統就 由類的對象實例比如書借閱者還書時間罰款等之間的相互作用表現出來以此表 示出圖書館的抽象概念與每個類相關的算法被稱為該類的公有接口public interface 數 據以私有形式被存儲在每個對象中對數據的訪問應與一般的程序代碼隔離開來CLU Ada 和Modula-2 是三種支持抽象數據類型的程序設計語言第四篇將說明和討論C++對抽象數據 類型程序設計方法的支持 面向對象的程序設計方法通過繼承inheritance 機制和動態綁定dynamic binding 機 制擴展了抽象數據類型繼承機制是對現有實現代碼的重用動態綁定是指對現有的公有接 口的重用以前獨立的類型現在有了類型/子類型的特定關系一本書一盒錄像帶一段錄 音甚至孩子的寵物盡管它們有各自的借閱/登記方式但都可以成為圖書館的收藏資料 共享的公有接口和私有的數據都放在一個抽象類圖書館資料LibraryMaterial 中每個特 殊的圖書館資料類都從LibraryMaterial 抽象類繼承共享的行為它們只需要提供與自身行為相 關的算法和數據Simula Smalltalk 和Java 是三種支持面向對象程序設計方法的著名語言 第五篇將集中討論C++對面向對象程序設計方法的支持 C++是一種支持多種程序設計方法的語言雖然我們主要把它當作面向對象的語言但 實際上它也提供對過程化的和基于對象的程序設計方法的支持這樣做的好處是對每個問題 都能夠提供最合適的解決方案事實上沒有一種程序設計方法能夠

    標簽: c++從入門到精通.pdf電子書 第二版

    上傳時間: 2019-01-30

    上傳用戶:jizhi111

  • Millimeter+Wave+V2V+Communications

    Recently millimeter-wave bands have been postu- lated as a means to accommodate the foreseen extreme bandwidth demands in vehicular communications, which result from the dissemination of sensory data to nearby vehicles for enhanced environmental awareness and improved safety level. However, the literature is particularly scarce in regards to principled resource allocation schemes that deal with the challenging radio conditions posed by the high mobility of vehicular scenarios

    標簽: Communications Millimeter Wave V2V

    上傳時間: 2020-05-23

    上傳用戶:shancjb

  • Enablers for Smart Cities

    The concept of smart cities emerged few years ago as a new vision for urban development that aims to integrate multiple information and communication technology (ICT) solutions in a secure fashion to manage a city’s assets. Modern ICT infrastructure and e-services should fuel sustainable growth and quality of life, enabled by a wise and participative management of natural resources to be ensured by citizens and government. The need to build smart cities became a requirement that relies on urban development that should take charge of the new infrastructures for smart cities (broadband infrastructures, wireless sensor networks, Internet-based networked applications, open data and open platforms) and provide various smart services and enablers in various domains including healthcare, energy, education, environmental management, transportation, mobility and public safety.

    標簽: Enablers Cities Smart for

    上傳時間: 2020-05-25

    上傳用戶:shancjb

  • Artificial+Intelligence

    The current methods of communications are becoming less relevant under today’s growing demand for and reliance on constant connectivity. Of decreasing relevance are the models of a single radio to perform a single task. The expansion of wireless access points among coffee shops, airports, malls, and other public arenas is opening up opportunities for new services and applications.

    標簽: Intelligence Artificial

    上傳時間: 2020-05-26

    上傳用戶:shancjb

  • Cognitive+Radio,+Software+Defined+Radio

    Today’s wireless services have come a long way since the roll out of the conventional voice-centric cellular systems. The demand for wireless access in voice and high rate data multi-media applications has been increasing. New generation wireless communication systems are aimed at accommodating this demand through better resource management and improved transmission technologies.

    標簽: Radio Cognitive Software Defined

    上傳時間: 2020-05-26

    上傳用戶:shancjb

  • EDGE+for+Mobile+Internet

    The General Packet Radio Service (GPRS) allows an end user to send and receive data in packet transfer mode within a public land mobile network (PLMN) without using a permanent connection between the mobile station (MS) and the external network during data transfer. This way, GPRS opti- mizes the use of network and radio resources (RRs) since, unlike circuit- switched mode, no connection between the MS and the external network is established when there is no data flow in progress. Thus, this RR optimiza- tion makes it possible for the operator to offer more attractive fees.

    標簽: Mobile EDGE

    上傳時間: 2020-05-27

    上傳用戶:shancjb

主站蜘蛛池模板: 嘉善县| 樟树市| 辰溪县| 泰来县| 靖西县| 台南市| 陇南市| 苍南县| 永仁县| 宁强县| 抚顺市| 黑山县| 三原县| 寻乌县| 蚌埠市| 天门市| 红原县| 乌鲁木齐市| 弋阳县| 阜城县| 弥勒县| 十堰市| 长乐市| 泰兴市| 寿光市| 宁国市| 昭苏县| 建昌县| 星座| 开封市| 丽水市| 肃南| 巫溪县| 来凤县| 久治县| 五台县| 红原县| 普安县| 时尚| 台南县| 桂阳县|