原创 求最大公約數
#include <stdio.h> int gcd( int x, int y ); /* function prototype */ int main() { int j; /* loop counter */ in
原创 二維數組 降水量的計算
/* rain.c -- finds yearly totals, yearly average, and monthly average for several years of rainfall d
原创 十進制轉二進制
/* binbit.c -- using bit operations to display binary */ #include <stdio.h> char * itobs(int, char *); void show_bstr(c
原创 選擇排序
void datasort(int score [],int n) { int k,i,j,temp; k=i; for(i=0;i<n-1;i++) { for(j=i+1;j<n;j++) { if(score[
原创 數字倒序輸出
#include <stdio.h> int reverseDigits( int n ); int main() { int number; /* input number */ printf( "Enter a n
原创 2012年4月11日OFDM學習筆記
1.碼元符號越短,碼元速率越大,由於ISI產生的信號惡化越嚴重後果。 2.單載波傳輸高速率數據的侷限: 奈奎斯特准則指出,在單載波系統要想獲得更高的速率,需要更寬的帶寬。 符號速率增加,信號帶寬也會增加。當信號帶寬超過無線信道的相關帶寬,
原创 變量的作用域、鏈接和存儲時期
自動變量具有代碼塊作用域、空連接和自動存儲時期。它們是局部的,爲定義它們的代碼塊(通常是一個函數)所私有。寄存器變量與自動變量具有相同的屬性,但編譯器可能使用速度更快的內存或寄存器來存儲它們。無法獲取一個寄存器變量的地址。 具有靜態存儲時
原创 用循環和遞歸分別計算階乘
// factor.c -- uses loops and recursion to calculate factorials #include <stdio.h> long fact(int n); long rfact(int n);
原创 求一個範圍內的所有整數的平方和
#include <stdio.h> // validate that input is an integer int get_int(void); // validate that range limits are valid bool
原创 利用 s-random interleaver得到1024個數字排列
關於原理,可以參考我的另一篇文章:http://blog.csdn.net/bjq1016/article/details/8795666 L_total = 1024 ; s=fix(sqrt(L_total/2)) ; alpha =
原创 數組冒泡排序
#include <stdio.h> #define SIZE 10 void main() { int a[]={2,6,15,45,1,456,7,8,9,10}; int pass ; int i ; int hold ;
原创 向上取整
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); printf("%d",(a+b-1)/b); } #include <stdio.h> int
原创 Mathematica by Example (Fifth Edition).pdf
https://download.csdn.net/download/qq_19347201/10652146 下載資源後匆忙回覆,評論我寫錯了。 在這裏給發佈者說聲抱歉。
原创 Dillinger 性感無比的在線markdown編輯器
http://dillinger.io/ Dillinger Dillinger is a cloud-enabled HTML5 Markdown editor. Type some Markdown text in the left
原创 JSON解析-android平臺2
package org.lxh.demo; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; impor