《橡皮條畫(huà)線》C語(yǔ)言 (可供C語(yǔ)言圖形編程參考) 本程序模擬許多繪圖工具中的畫(huà)線方法和畫(huà)框方法 其中工具條上的各個(gè)按鈕的功能是: 1、畫(huà)線(快捷鍵“l(fā)”) 2、畫(huà)框(快捷鍵“f”) 3、剪去框外的直線(快捷鍵“c”) 4、刷新(快捷鍵“r”) 5、新建(快捷鍵“n”) 6、退出(快捷鍵“Esc”) 最左邊的十字架用鼠標(biāo)拖動(dòng)時(shí)可以移動(dòng)工具條 左上角的 framepoints為所畫(huà)矩形框的左上角坐標(biāo)和右下角坐標(biāo) mouse為鼠標(biāo)當(dāng)前坐標(biāo) linesnum為隊(duì)列中的直線數(shù)
上傳時(shí)間: 2015-06-18
上傳用戶:pinksun9
計(jì)算機(jī)算法中著名的0_1背包問(wèn)題:給定n種物品和一背包。物品i的重量是Wi,其價(jià)值為Vi,背包的容量是c,問(wèn)應(yīng)如何選擇裝入背包中的物品,使得裝入背包中物品的總價(jià)值最大。
標(biāo)簽: 計(jì)算機(jī) 算法 背包問(wèn)題
上傳時(shí)間: 2015-06-20
上傳用戶:leehom61
剖析Intel IA32 架構(gòu)下C 語(yǔ)言及CPU 浮點(diǎn)數(shù)機(jī)制 Version 0.01 哈爾濱工業(yè)大學(xué) 謝煜波 (email: xieyubo@126.com 網(wǎng)址:http://purec.binghua.com) (QQ:13916830 哈工大紫丁香BBSID:iamxiaohan) 前言 這兩天翻看一本C 語(yǔ)言書(shū)的時(shí)候,發(fā)現(xiàn)上面有一段這樣寫(xiě)到 例:將同一實(shí)型數(shù)分別賦值給單精度實(shí)型和雙精度實(shí)型,然后打印輸出。 #include <stdio.h> main() { float a double b a = 123456.789e4 b = 123456.789e4 printf(“%f\n%f\n”,a,b) } 運(yùn)行結(jié)果如下:
標(biāo)簽: Version xieyubo Intel email
上傳時(shí)間: 2013-12-25
上傳用戶:徐孺
矩陣運(yùn)算的算法 用Type類數(shù)組創(chuàng)建矩陣對(duì)象 matrix(int rows,int cols) //創(chuàng)建矩陣,值為0 matrix(int n) //創(chuàng)建單位陣 matrix(const matrix &) //拷貝構(gòu)造函數(shù) BOOL Ismatrixf(){ return (rows==cols) } //判斷矩陣是否為方陣 modifyrowscols(int rows,int cols) //修改矩陣的行列數(shù) ~matrix() {delete []elems } //析構(gòu)函數(shù)
標(biāo)簽: matrix int Type cols
上傳時(shí)間: 2015-07-14
上傳用戶:水口鴻勝電器
本人初學(xué)c語(yǔ)言程序不是很拿手,n!的求法。。希望大家指教
上傳時(shí)間: 2015-08-13
上傳用戶:athjac
n皇后問(wèn)題,rar格式,運(yùn)行環(huán)境c++,n〉=1
標(biāo)簽:
上傳時(shí)間: 2015-08-16
上傳用戶:helmos
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
上傳用戶:liansi
C語(yǔ)言 打印“魔方陣”,所謂魔方陣是指這樣的方陣 ,它的每一行,每一列和對(duì)角線之間和均相等。例如,三階魔方陣為 8 1 6 3 5 7 4 9 2 要求打印出1~n的平方數(shù)的自然數(shù)的魔方陣。
上傳時(shí)間: 2015-08-26
上傳用戶:er1219
本書(shū)以4個(gè)面向來(lái)表現(xiàn)C++的本質(zhì):procedural(程序性的)、generic(泛型的)、object-based(個(gè)別對(duì)象的)、object-oriented(面向?qū)ο蟮模?。本?shū)的組織圍繞著一系列逐漸繁復(fù)的程序問(wèn)題,以及用以解決這些問(wèn)題的語(yǔ)言特性。循此方式,你不只學(xué)到C++的函數(shù)和結(jié)構(gòu),也會(huì)學(xué)習(xí)到它們的設(shè)計(jì)目的和基本原理。 你可以由本書(shū)發(fā)現(xiàn)以下關(guān)鍵主題: ● Generic (泛型)編程風(fēng)格和Standard Template Library(STL) ● Object-based(個(gè)別對(duì)象)編程風(fēng)格和class的設(shè)計(jì) ● Object-oriented(面向?qū)ο?編程風(fēng)格和classes階層體系的設(shè)計(jì) ● Function template 和class template 的設(shè)計(jì)和運(yùn)用 ● Exception handling(異常處理)與執(zhí)行期型別鑒定(Run-Time Type Identification)
標(biāo)簽: object-oriented object-based procedural generic
上傳時(shí)間: 2013-12-30
上傳用戶:362279997
C# BigInteger class. BigInteger.cs is a csharp program. It is the BIgInteger class. It has methods: abs() , FermatLittleTest(int confidence) ,gcd(BigInteger bi) , genCoPrime(int bits, Random rand) , genPseudoPrime(int bits, int confidence, Random rand) , genRandomBits(int bits, Random rand) , isProbablePrime(int confidence) , isProbablePrime() , Jacobi(BigInteger a, BigInteger b) , LucasSequence(BigInteger P, BigInteger Q, BigInteger k, BigInteger n) ,max(BigInteger bi) , min(BigInteger bi) , modInverse(BigInteger modulus) , RabinMillerTest(int confidence) ,
標(biāo)簽: BigInteger class BIgInteger program
上傳時(shí)間: 2013-12-23
上傳用戶:ynzfm
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1