This section contains a brief introduction to the C language. It is intended as a tutorial on the language, and aims at getting a reader new to C started as quickly as possible. It is certainly not intended as a substitute for any of the numerous textbooks on C. 2. write a recursive function FIB (n) to find out the nth element in theFibanocci sequence number which is 1,1,2,3,5,8,13,21,34,55,…3. write the prefix and postfix form of the following infix expressiona + b – c / d + e * f – g * h / i ^ j4. write a function to count the number of nodes in a binary tr
標(biāo)簽: introduction the contains intended
上傳時(shí)間: 2013-12-23
上傳用戶(hù):liansi
基于MCS-51單片機(jī)的數(shù)字鐘設(shè)計(jì) [摘要] III [ABSTRACT] IV 引言 1 1緒論 2 1.1 集成電路 2 1.2 主要技術(shù)的背景 2 1.2.1 發(fā)展歷史 2 1.2.2 現(xiàn)狀 3 1.2.3 發(fā)展趨勢(shì) 3 2器件簡(jiǎn)介 4 2.1 LED顯示器 4 2.1.1 LED顯示器的結(jié)構(gòu) 4 2.1.2 LED的接線形式 5 2.2 AT89C52簡(jiǎn)介 5 2.2.1 AT89C52主要性能參數(shù): 5 2.2.2 AT89C52單片機(jī)的功能特性概述: 6 2.3 DS1302芯片 9 2.3.1 DS1302的性能特性: 9 2.3.2 DS1302數(shù)據(jù)操作原理 10 2.4 74LS164-八位移位寄存器 14 2.4.1 74LS64簡(jiǎn)介 14 2.4.2 74LS164邏輯介紹: 15 3硬件電路 17 3.1 線路的設(shè)計(jì) 17 3.1.1 電源轉(zhuǎn)換模塊 18 3.1.2 主控制模塊 18 3.1.3 顯示模塊 19 3.1.4 鍵盤(pán)接口設(shè)計(jì) 20 3.2 電路圖的繪制 20 3.3 電路板的焊接 20 3.4 打開(kāi)電源前應(yīng)注意的問(wèn)題 20 4軟件設(shè)計(jì)部分 21 4.1 陽(yáng)歷程序的設(shè)計(jì) 21 4.2 時(shí)間調(diào)整程序設(shè)計(jì) 21 4.3 陰歷程序設(shè)計(jì) 23 5調(diào)試 28 6小結(jié) 29 7致謝 30 8參考文獻(xiàn) 31 9附錄 32
標(biāo)簽: ABSTRACT MCS 1.1 1.2
上傳時(shí)間: 2015-10-17
上傳用戶(hù):xuan‘nian
基于C/S模式的考試系統(tǒng)的研究與開(kāi)發(fā) 1 1. 前言 1 1.1 MICROSOFT VISUAL STUDIO .NET 2003開(kāi)發(fā)平臺(tái)和C#語(yǔ)言的特點(diǎn) 1 1.2用C/S模式開(kāi)發(fā)計(jì)算機(jī)考試系統(tǒng)的優(yōu)越性 1 2. 系統(tǒng)分析 2 2.1系統(tǒng)基本情況描述 2 2.2 可行性分析 2 2.3 需求分析 3 2.3.1采用SA方法畫(huà)出計(jì)算機(jī)考試系統(tǒng)的一套分層數(shù)據(jù)流圖 3 2.3.2數(shù)據(jù)詞典 4 3. 系統(tǒng)設(shè)計(jì) 4 3.1系統(tǒng)配置 4 3.2系統(tǒng)概要設(shè)計(jì) 4 3.2.1系統(tǒng)結(jié)構(gòu)圖 4 3.2.2模塊功能及界面設(shè)計(jì) 4 3.2.3模塊界面設(shè)計(jì) 5 3.3系統(tǒng)詳細(xì)設(shè)計(jì) 6 3.3.1模塊詳細(xì)設(shè)計(jì) 6
標(biāo)簽: MICROSOFT VISUAL STUDIO 2003
上傳時(shí)間: 2013-12-26
上傳用戶(hù):dragonhaixm
高斯列主元消去法,計(jì)算方法實(shí)現(xiàn),已編譯通過(guò)。使用例子 3x1+2x2+2x3+3x4=2.5 5x1+2x2+3x3+4x4=2.5 2x1+2x2+x3+2x4=2 3x1+x2+3x3+2x4=1.5 輸入N=4,A={3 2 2 3 5 2 3 4 2 2 1 2 3 1 3 2},B={2.5 2.5 2 1.5}
標(biāo)簽: 高斯
上傳時(shí)間: 2015-12-23
上傳用戶(hù):yan2267246
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
標(biāo)簽: represented integers group items
上傳時(shí)間: 2016-01-17
上傳用戶(hù):jeffery
古典密碼中,主要的思想為移位算法及置換算法。 1.移位密碼 密鑰K為整數(shù),且取值空間為0到25;加密函數(shù):x = x + k (mod 26);解密函數(shù):x = x - k (mod 26)。當(dāng)K=3時(shí),為凱撒密碼。 2.仿射密碼 密鑰對(duì)由a、b組成,整數(shù)a滿(mǎn)足 gcd(a, 26) = 1,整數(shù)b的取值空間為0到25;加密函數(shù):x = ax + b(mod 26);解密函數(shù):x = a*y - a*b (mod 26)。當(dāng)a=1,b=3時(shí),為凱撒密碼。 3.維吉尼亞密碼 首先確定密鑰長(zhǎng)度(本例中密鑰只采取個(gè)位數(shù)字,所以取決于輸入密鑰的長(zhǎng)度),然后輸入滿(mǎn)足這個(gè)長(zhǎng)度的向量;加密:取明文第一個(gè)字母并將之移k1位,這里k1=1,第二個(gè)字母移k2位,k2=2,一旦到了密鑰末尾,又從頭開(kāi)始。 4.換位密碼 首先確定密鑰長(zhǎng)度,輸入長(zhǎng)度為5的0到4的整數(shù)序列,將明文分成每5個(gè)字母一組,每組字母按照密鑰進(jìn)行換位。
標(biāo)簽: 密碼
上傳時(shí)間: 2016-02-09
上傳用戶(hù):jqy_china
車(chē)間調(diào)度(matlab).rar 1、初始化參數(shù): 族群 60,循環(huán)500次,交叉0。8 變異 0。6 代溝0。9 2、初始化群:按調(diào)度優(yōu)先級(jí)編碼,比如 3個(gè)零件,每個(gè)零件3個(gè)工序,就初始化: 1、3、4、5、6、7、8、9、2 2、1、3、4、5、6、7、8、9 等等
標(biāo)簽: matlab 60 車(chē)間調(diào)度
上傳時(shí)間: 2014-01-21
上傳用戶(hù):lijinchuan
【目錄信息】 第一部分 準(zhǔn)備程序員考試 第1章 程序員考試指南 1 1.1 程序員考試的形式是什么 2 1.2 考試包含哪些內(nèi)容 2 1.2.1 聲明和訪問(wèn)控制 2 1.2.2 流控制和異常處理 2 1.2.3 垃圾收集 3 1.2.4 語(yǔ)言基礎(chǔ) 3 1.2.5 運(yùn)算符和賦值 3 1.2.6 重載、覆蓋運(yùn)行時(shí)間類(lèi)型和面向?qū)ο?3 1.2.7 線程 3 1.2.8 java.awt包—布局 4 1.2.9 java.lang包 4 1.2.10 java.util包 4 1.2.11 java.io包 4 1.3 本書(shū)與程序員考試目標(biāo)的對(duì)應(yīng)關(guān)系 4 1.4 考試是怎么管理的 4 1.5 怎樣簽約和考試 5
上傳時(shí)間: 2014-08-06
上傳用戶(hù):lx9076
1.實(shí)驗(yàn)任務(wù): 本實(shí)驗(yàn)實(shí)現(xiàn)的是0-99自動(dòng)計(jì)數(shù),并在二位數(shù)碼管上動(dòng)態(tài)顯示。 2.實(shí)驗(yàn)?zāi)康? 掌握數(shù)碼管動(dòng)態(tài)顯示原理 3.動(dòng)態(tài)顯示原理 原理圖中把所有數(shù)碼管的6個(gè)筆劃段a-h同名端連在一起通過(guò)74LS573接P0口,而每一個(gè)數(shù)碼管的公共極COM是各自獨(dú)立地受I/O線控制。在這里就有了一個(gè)矛盾, 所有數(shù)碼管的8個(gè)筆劃段a-h同名端連在一起, 那么在一個(gè)屏幕上如何顯示0,1,2,3,4,5這樣不同的數(shù)字呢? 的確, 在這樣的接法中,同一個(gè)瞬間所有的數(shù)碼管顯示都是相同的, 不能顯示不同的數(shù)字。在單片機(jī)里,首先顯示一個(gè)數(shù), 然后關(guān)掉.然后顯示第二個(gè)數(shù),又關(guān)掉, 那么將看到連續(xù)的數(shù)字顯示,輪流點(diǎn)亮掃描過(guò)程中,每位顯示器的點(diǎn)亮?xí)r間是極為短暫的(約10ms),由于人的視覺(jué)暫留現(xiàn)象及發(fā)光二極管的余輝效應(yīng),盡管實(shí)際上各位顯示器并非同時(shí)點(diǎn)亮,但只要掃描的速度足夠快,給人的印象就是一組穩(wěn)定的顯示數(shù)據(jù),不會(huì)有閃爍感。
標(biāo)簽: 實(shí)驗(yàn) 99 自動(dòng)
上傳時(shí)間: 2016-04-21
上傳用戶(hù):wff
var matlab:variant //通過(guò)"變體"調(diào)用接口是比較低效的,但很方便 begin //變體這種結(jié)構(gòu),本是vb中的東西。 try //如果已有活動(dòng)的matlab.application對(duì)象,取其接口 matlab:=GetActiveOleObject( Matlab.Application ) except //這些個(gè)api所使用到的參數(shù),其實(shí)都可以在注冊(cè)表里搜索到. matlab:=CreateOleObject( Matlab.Application ) //否則自己創(chuàng)建之 matlab:=CreateOleObject( Matlab.Application.5 ) matlab.execute( a=[1 1/ 3 1/5] ) //matlab.application接口具有 matlab.execute( b=[3 1 1/3] ) //這種方法(接口),否則會(huì)出錯(cuò) matlab.execute( plot(a,b) );
標(biāo)簽: variant matlab begin var
上傳時(shí)間: 2013-12-18
上傳用戶(hù):dapangxie
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1