經典c程序100例==1--10 【程序1】 題目:有1、2、3、4個數(shù)字,能組成多少個互不相同且無重復數(shù)字的三位數(shù)?都是多少? 1.程序分析:可填在百位、十位、個位的數(shù)字都是1、2、3、4。組成所有的排列后再去 掉不滿足條件的排列。 2.程序源代碼: main() { int i,j,k printf("\n") for(i=1 i<5 i++) /*以下為三重循環(huán)*/ for(j=1 j<5 j++) for (k=1 k<5 k++) { if (i!=k&&i!=j&&j!=k) /*確保i、j、k三位互不相同*/ printf("%d,%d,%d\n",i,j,k) }
上傳時間: 2014-01-07
上傳用戶:lizhizheng88
/* RSA Demo 1.0 版 * 版權所有 (C) 2004 趙春生 * 2004.04.25 * http://timw.yeah.net * http://timw.126.com * 本程序調用Miracl ver 4.82大數(shù)運算庫,詳見其附帶手冊。 * P,Q,N,D,E使用RSATool2生成。 */ 編譯提示: 一:將Project-Settings-Settings For(All Configuration)-C/C++中Category項的 Precompiled Headers設置成:Automatic use of precompiled headers(圖1)。 二:將ms32.lib添加到工程中(圖2)。 三:MIRACL是C庫。 extern "C" { #include "miracl.h" #include "mirdef.h" } #pragma comment( lib, "ms32.lib" )
上傳時間: 2015-03-23
上傳用戶:leehom61
/* RSA Demo 1.0 版 * 版權所有 (C) 2004 趙春生 * 2004.04.25 * http://timw.yeah.net * http://timw.126.com * 本程序調用Miracl ver 4.82大數(shù)運算庫,詳見其附帶手冊。 * P,Q,N,D,E使用RSATool2生成。 */ 編譯提示: 一:將Project-Settings-Settings For(All Configuration)-C/C++中Category項的 Precompiled Headers設置成:Automatic use of precompiled headers(圖1)。 二:將ms32.lib添加到工程中(圖2)。 三:MIRACL是C庫。 extern "C" { #include "miracl.h" #include "mirdef.h" } #pragma comment( lib, "ms32.lib" )
上傳時間: 2013-12-17
上傳用戶:liansi
后綴數(shù)存儲算法,利用后綴樹(sufixtree)存儲,搜索數(shù)據(jù),可以達到C*O(n)的復雜度
上傳時間: 2014-01-15
上傳用戶:極客
C++完美演繹 經典算法 如 /* 頭文件:my_Include.h */ #include <stdio.h> /* 展開C語言的內建函數(shù)指令 */ #define PI 3.1415926 /* 宏常量,在稍后章節(jié)再詳解 */ #define circle(radius) (PI*radius*radius) /* 宏函數(shù),圓的面積 */ /* 將比較數(shù)值大小的函數(shù)寫在自編include文件內 */ int show_big_or_small (int a,int b,int c) { int tmp if (a>b) { tmp = a a = b b = tmp } if (b>c) { tmp = b b = c c = tmp } if (a>b) { tmp = a a = b b = tmp } printf("由小至大排序之后的結果:%d %d %d\n", a, b, c) } 程序執(zhí)行結果: 由小至大排序之后的結果:1 2 3 可將內建函數(shù)的include文件展開在自編的include文件中 圓圈的面積是=201.0619264
標簽: my_Include include define 3.141
上傳時間: 2014-01-17
上傳用戶:epson850
用C語言來實現(xiàn)的。牛頓插值法對一些函數(shù)作近似的替代,是N個節(jié)點數(shù)的插值函數(shù)。
上傳時間: 2013-12-31
上傳用戶:lo25643
Bochs is a highly portable open source IA-32 (x86) PC emulator written in C++, that runs on most popular platforms. It includes emulation of the Intel x86 CPU, common I/O devices, and a custom BIOS. Currently, Bochs can be compiled to emulate a 386, 486, Pentium, Pentium Pro or AMD64 CPU, including optional MMX, SSE, SSE2 and 3DNow! instructions. Bochs is capable of running most Operating Systems inside the emulation including Linux, DOS, Windows 95/98 and Windows NT/2000. Bochs was written by Kevin Lawton and is currently maintained by the Bochs project at "http://bochs.sourceforge.net".
標簽: emulator portable written highly
上傳時間: 2015-04-06
上傳用戶:FreeSky
N個源碼,都是C文件或C++源文件。 此文件高壓縮。解壓時間可能長一些。 申請加下載限額。 主頁:http://www.programsalon.com/developer.asp?id=victor000000 郵箱:victor000000@tom.com
標簽: 源碼
上傳時間: 2013-12-21
上傳用戶:stewart·
一個基于NHibernate的N層開發(fā)基礎框架(可以,馬上應用到你的項目中),使用.NET(C#)開發(fā)。基本操作CRUD完全實現(xiàn),數(shù)據(jù)間的關系(one-to-many,many-to-many)均有實現(xiàn)!
標簽: NHibernate 開發(fā)基礎
上傳時間: 2013-12-20
上傳用戶:gaojiao1999
c語言的數(shù)學實驗報告 (該程序經過調試成功后能實現(xiàn)五項功能:1,解n階行列式;2,解n階線性方程; 3,求矩陣相乘;4,求矩陣;5,退出) 交作業(yè)好用
上傳時間: 2014-01-12
上傳用戶:aysyzxzm