C++完美演繹 經(jīng)典算法 如 /* 頭文件:my_Include.h */ #include <stdio.h> /* 展開C語(yǔ)言的內(nèi)建函數(shù)指令 */ #define PI 3.1415926 /* 宏常量,在稍后章節(jié)再詳解 */ #define circle(radius) (PI*radius*radius) /* 宏函數(shù),圓的面積 */ /* 將比較數(shù)值大小的函數(shù)寫在自編include文件內(nèi) */ 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("由小至大排序之后的結(jié)果:%d %d %d\n", a, b, c) } 程序執(zhí)行結(jié)果: 由小至大排序之后的結(jié)果:1 2 3 可將內(nèi)建函數(shù)的include文件展開在自編的include文件中 圓圈的面積是=201.0619264
標(biāo)簽: my_Include include define 3.141
上傳時(shí)間: 2014-01-17
上傳用戶:epson850
絕對(duì)正真的stdio.h的實(shí)現(xiàn),從原始的io角度看待自己所編寫的c指令,對(duì)以后c的深入研究大有裨益。
上傳時(shí)間: 2015-04-24
上傳用戶:klin3139
一、編程環(huán)境: windows2003 +visual stdio c++ .net,Ado + SQL2000 二、SQL設(shè)置: 將在SQL2000下建立schooldata數(shù)據(jù)庫(kù),導(dǎo)入數(shù)據(jù)文件 三、導(dǎo)入數(shù)據(jù): data目錄下有school_back數(shù)據(jù)庫(kù)備分文件 操作:用SQL企業(yè)管理器還原數(shù)據(jù)庫(kù)來(lái)導(dǎo)入數(shù)據(jù) 訪問(wèn)本地?cái)?shù)據(jù)庫(kù)服務(wù)器,密碼是自己設(shè)置的那個(gè),操作schooldata數(shù)據(jù)庫(kù)的用戶名和密碼相同。 主要用ADO訪問(wèn)數(shù)據(jù)庫(kù),和幾個(gè)顯示數(shù)據(jù)的控件Treectrl,listctrl,datagrid等程序中有幾個(gè)BUG還沒(méi)解決, 四、實(shí)現(xiàn)功能: 操作:在選擇查詢條件:選擇一個(gè),tree控件里顯示相關(guān)信息 可以在tree控件里單擊來(lái)顯示每個(gè)ITEM,每個(gè)ITEM相關(guān)信息顯示在LIST控件內(nèi) 雙擊LIST控件顯示具體信息 也可以在窗口里單擊右鍵或操作菜單具體操作 五、主要功能: 查詢,添加,刪除,顯示“學(xué)院,各系,班級(jí),學(xué)生,教師,社團(tuán),課程”等信息 程序還用了Active Skin 對(duì)程序進(jìn)行了換膚!!
標(biāo)簽: SQL 2000 schooldata windows
上傳時(shí)間: 2015-04-26
上傳用戶:zyt
AVR ISP/JTAG下載器全部資料,包括原理圖/PCB/燒錄的文件.支持AVR stdio下載.
上傳時(shí)間: 2013-12-31
上傳用戶:playboys0
感知器的VC實(shí)現(xiàn)#include "percept.h" #include "stdio.h" #include "stdlib.h"
標(biāo)簽: include percept stdlib stdio
上傳時(shí)間: 2013-12-17
上傳用戶:偷心的海盜
#include "stdio.h" #include "math.h" #include "malloc.h" #include "string.h" #define m 6 #define n 29 #define p 0.5
標(biāo)簽: include define malloc string
上傳時(shí)間: 2015-05-22
上傳用戶:lwwhust
#include "stdio.h" #include "math.h" #include "malloc.h" #include "string.h" #define m 6 #define n 29 #define p 0.5
標(biāo)簽: include define malloc string
上傳時(shí)間: 2015-05-22
上傳用戶:cc1915
#include "stdio.h" #include "math.h" #include "malloc.h" #include "string.h" #define m 6 #define n 29 #define p 0.5
標(biāo)簽: include define malloc string
上傳時(shí)間: 2014-01-03
上傳用戶:JIUSHICHEN
#include "stdio.h" #include "math.h" #include "malloc.h" #include "string.h" #define m 6 #define n 29 #define p 0.5
標(biāo)簽: include define malloc string
上傳時(shí)間: 2014-06-01
上傳用戶:yepeng139
#include "define.h" #include <stdio.h> #include <string.h> #include <ctype.h> #include <malloc.h> FILE *fp /*////////////////////////////////////////////////////////////////////////////// This is a pretreatment. /////////////////////////////////////////////////////////////////////////////*/ void readIntoBuffer(char buffer[256]) { char ch1 char temp int i for(i=0 i<256&&!feof(fp) i++) { ch1=fgetc(fp) if(ch1== )
標(biāo)簽: include gt lt define
上傳時(shí)間: 2015-07-16
上傳用戶:ynsnjs
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1