C++完美演繹 經典算法 如 /* 頭文件:my_Include.h */ #include <stdio.h> /* 展開C語言的內建函數指令 */ #define PI 3.1415926 /* 宏常量,在稍后章節再詳解 */ #define circle(radius) (PI*radius*radius) /* 宏函數,圓的面積 */ /* 將比較數值大小的函數寫在自編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) } 程序執行結果: 由小至大排序之后的結果:1 2 3 可將內建函數的include文件展開在自編的include文件中 圓圈的面積是=201.0619264
標簽: my_Include include define 3.141
上傳時間: 2014-01-17
上傳用戶:epson850
Addressbook using double-linked list. This example shows the use of a double-linked list by implementing an addressbook for the console. It has features like inserting, searching(linear), sorting(bubble sort), deleting and load/save to a file. I wrote this during my study of Applied Computer Science so it s intended mainly for students who want to know about some advanced programming techniques in C. The Code was compiled with MSVC++ 6.0 but it should compile with any ANSI-compliant compiler.
標簽: double-linked list Addressbook implemen
上傳時間: 2014-01-24
上傳用戶:asddsd
SIGMA-DELTA 原理 實現的用LPC900系列單片機的比較器實現16位A/D。 有詳細的說明和源代碼(匯編格式,但是可以在KEIL下的C中調用)。
標簽: SIGMA-DELTA LPC 900 單片機
上傳時間: 2014-01-16
上傳用戶:懶龍1988
How to run: 1. compile Callback.java 2. compile the native code into a shared lib cl /Ie:\j2sdk1.4.0\include /Ie:\j2sdk1.4.0\include\win32 /LD /FeMyImpOfCallback.dll Callback.c 3. run: java Callback
標簽: compile Callback native shared
上傳時間: 2015-03-31
上傳用戶:jhksyghr
Copyright© 2004 Sergiu Dumitriu, Marta Gî rdea, Că tă lin Hriţ cu Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License" All brand names, product names, or trademarks belong to their respective holders.
標簽: Permission Copyright 259 Dumitriu
上傳時間: 2015-04-02
上傳用戶:jackgao
This is a package to calculate Discrete Fourier/Cosine/Sine Transforms of 1-dimensional sequences of length 2^N. This package contains C and Fortran FFT codes.
標簽: dimensional Transforms calculate sequences
上傳時間: 2014-01-14
上傳用戶:LIKE
JILRuntime A general purpose, register based virtual machine (VM) that supports object-oriented features, reference counting (auto destruction of data as soon as it is no longer used, no garbage collection), exceptions (handled in C/C++ or virtual machine code) and other debugging features. Objects and functions can be written in virtual machine code, as well as in C or C++, or any other language that can interface to C object code. The VM is written for maximum performance and thus is probably not suitable for embedded systems where a small memory footprint is required. Possible uses of the VM are in game development, scientific research, or to provide a stand-alone, general purpose programming environment.
標簽: object-oriented JILRuntime register supports
上傳時間: 2013-12-23
上傳用戶:cc1015285075
SQLDirect Component Library is a light-weight Borland Database Engine replacement for Borland Delphi v.4 - 9(2005) and C++Builder v.4 - 6. It uses the native application programming interfaces to access to the following SQL-servers: * Centura (formerly, Gupta) SQLBase Server * IBM DB2 Universal Database * Informix Server * Interbase/Firebird Server * Microsoft SQL Server * MySQL Server * Oracle Database Server * PostgreSQL Server * Sybase Adaptive Server Enterprise and Adaptive Server Anywhere * ODBC datasources * OLEDB datasources
標簽: Borland light-weight replacement SQLDirect
上傳時間: 2013-12-10
上傳用戶:cuibaigao
The code assumes a two-dimensional computational domain with TMz polarization (i.e., non-zero field Ez, Hx, and Hy). The program is currently written so that the incident field always strikes the lower-left corner of the total-field region first. (If you want a different corner, that should be a fairly simple tweak to the code, but for now you ll have to make that tweak yourself.) I have attempted to provide copious comments in the code and hope that a knowledgeable C programmer can quickly map the approach as described in the paper to what is in the program.
標簽: two-dimensional computational polarization non-zero
上傳時間: 2013-12-13
上傳用戶:cylnpy
c語言編譯器,跨平臺,4.2版本 lcc version 3.x is described in the book "A Retargetable C Compiler: Design and Implementation" (Addison-Wesley, 1995, ISBN 0-8053-1670-1). There are significant differences between 3.x and 4.x, most notably in the intermediate code. For details, see http://www.research.microsoft.com/~drh/pubs/interface4.pdf.
上傳時間: 2015-04-06
上傳用戶:jkhjkh1982