原创 線性表的順序表示和實現:Union

void Union(SqList *La,SqList Lb){ int La_len = ListLength(*La); int Lb_len = ListLength(Lb); ElemType e;

原创 數組結合指針的簡單操作

#include <stdio.h> #include <stdlib.h> int main() { int arr_a[10]; int arr_b[10]; for(int i=0;i<10;i++)

原创 線性表的順序表示和實現:sqlist的第二種寫法

#include <stdio.h> #include <stdlib.h> #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE

原创 C使用clock計算代碼執行時間

#include <stdio.h> #include <stdlib.h> #include <time.h> int main() { int i; time_t start, stop; double d

原创 魔方及想認識的一個朋友

最近沒事玩上了魔方,在http://bbs.mf100.org/viewthread.php?tid=947&sid=PjxaOY上看到也有程序界的朋友在玩,http://www.telossoft.com.cn/ConnectTelos

原创 Triplet

#include <stdio.h> #include <stdlib.h> #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASI

原创 線性表的順序表示和實現:sortAscList

//初始條件:線性表L已存在,1<=i<=ListLength(L) //操作結果:用e改寫L中第i個數據元素的值 Status SetElem(SqList L,int i,ElemType e){ if(i<1 || i>L

原创 線性表的順序表示和實現:sqlist完整代碼

#include <stdio.h> #include <stdlib.h> #include <time.h> #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0

原创 線性表的順序表示和實現:MergeList

//已知線性表La和Lb中的數據元素按值非遞減排列 //歸併La和Lb得到新的線性表Lc,Lc的數據元素也按值非遞減排列 void MergeList(SqList La,SqList Lb,SqList *Lc){ InitL

原创 線性表的順序表示和實現:sqlist

#include <stdio.h> #include <stdlib.h> #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define INFEASIBLE

原创 微型計算機一般分爲4位、8位、16位、32位和64位機幾種

 轉自:http://zhidao.baidu.com/question/43179175.html 按微處理器(CPU)字長分類按微處理器字長來分,微型計算機一般分爲4位、8位、16位、32位和64位機幾種。(1)4位微型計算機;用4位

原创 如何理解c和c++的複雜類型聲明

轉自:http://blog.csdn.net/windboyzsj/archive/2007/09/23/1796957.aspx 曾經碰到過讓你迷惑不解、類似於int * (* (*fp1) (int) ) [10];這樣的變量聲明嗎

原创 計算公元某年某月某日是星期幾

我們知道,公曆的平年是365天,閏年是366天,置閏的方法是能被4整除的年份在2月加一天,但能被100整除的不閏,能被400整除的又閏;因此,像1600、2000、2400年都是閏年,而1700、1800、1900、2100年都是平年,公

原创 神奇的“達夫設備”代碼!

轉自:http://www.sjbaker.org/wiki/index.php?title=Cool_Code_list#Duffs_Device Cool Code list From Wikiid Jump to: navigati

原创 C++程序設計從零開始之何謂變量

轉自http://www.51edu.com/it/2009/0417/article_21692.html    本篇說明內容是C++中的關鍵,基本大部分人對於這些內容都是昏的,但這些內容又是編程的基礎中的基礎,必須詳細說明。   數