随笔分类 - Data structure in C
1
Data structure in C
摘要:#include #include #define Max1 10 #define Max2 6 struct List { int Number; struct List *Next; }; typedef struct List Node; typedef Node *Link; int Data1[Max1] = { 1, 2, 3...
阅读全文
摘要:#include #include #define Max 10 struct List { int Number; int Total; struct List *Next; }; typedef struct List Node; typedef Node *Link; int Data[2][Max] = { 1, 3, 5, 7, ...
阅读全文
摘要:#include #include #define Max 10 struct List { int Number; int Total; struct List *Next; }; typedef struct List Node; typedef Node *Link; int Data[2][Max] = { 1, 3, 5, 7, 2, ...
阅读全文
摘要:#include #include #define Max 10 struct List { int Number; int Total; struct List *Next; }; typedef struct List Node; typedef Node *Link; int Data[2][Max] = { 1, 3, ...
阅读全文
摘要:#include #include #define Max 10 struct List { int Number; int Total; struct List *Next; }; typedef struct List Node; typedef Node *Link; int Data[2...
阅读全文
摘要:#include #include #define Max 10 struct List { int Number; char Name[Max]; struct List *Next; }; typedef struct List Node; typedef Node *Link; void Free_List(Lin...
阅读全文
摘要:#include #include #define Max 10 struct List { int Number; char Name[Max]; struct List *Next; }; typedef struct List Node; typedef Node *Link; void main(void) { ...
阅读全文
摘要:#include #include void main(void) { int Lower[5][5] = { 3, 0, 0, 0, 0, 7, 5, 0, 0, 0, 6, 4, 5, 0, 0, 8, 3, 2, 1, 0, ...
阅读全文
摘要:#include #include void main(void) { int Lower[5][5] = { 3, 0, 0, 0, 0, 7, 5, 0, 0, 0, 6, 4, 5, 0, 0, 8, 3, 2, 1, 0, ...
阅读全文
摘要:#include #include void main(void) { int Upper[5][5] = { 3, 9, 1, 4, 7, 0, 5, 2, 5, 8, 0, 0, 5, 2, 4, 0, 0, 0, 1, 7, ...
阅读全文
摘要:#include #include void main(void) { int Upper[5][5] = { 3, 9, 1, 4, 7, 0, 5, 2, 5, 8, 0, 0, 5, 6, 4, 0, 0, 0, 1, 7, ...
阅读全文
摘要:#include #include void main(void) { int Data[9][7] = { 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 4, 0, ...
阅读全文
摘要:#include #include void main(void) { int Data[5][4]={ 9, 7, 6, 6, 3, 5, 3, 3, 6, 6, 4, 7, 7, 5, 1, 4, 1, 2, 8...
阅读全文
摘要:#include #include void main(void) { int MatrixA[5][4] = { 1, 5, 7, 3, 3, 6, 3, 9, 1, 2, 8, 7, 0, 3, 1, 9, ...
阅读全文
摘要:#include #include void main() { int Employee[10] = { 27000, 32000, 32500, 27500, 28500, 29000, 31000, 32500, 30000, 26000}; int Salary; int Counter = 0; int i; ...
阅读全文
摘要:#include #include void main() { int Max = 0; int i; float Number[20]; float Summary; float Average; Summary = 0; printf("Please input the number of data : "); scan...
阅读全文
摘要:#include #include void main() { int Number; int FibN; int FibN1; int FibN2; int i; printf("The Fibonacci Numbers \n"); printf("Please enter a number : "); scanf("%...
阅读全文
摘要:#include #include int Data[20] = {1, 7, 9, 12, 15, 16, 20, 32, 35, 67, 78, 80, 83, 89, 90, 92, 97, 108, 120, 177}; int Counter = 1; int Seq_Search(int Key) { int i; for ( i = 0; i < 20; ...
阅读全文
摘要:#include #include char String[30]; int Length; void Reverse(int N) { if (N < Length) { Reverse(N + 1); printf("%c", String[N]); } } void main() { printf("Please enter s...
阅读全文
摘要:#include #include int Multiply(int M, int N) { int Result; if (N == 1) { Result = M; } else { Result = M + Multiply(M, N-1); } return Result; } voi...
阅读全文
1

浙公网安备 33010602011771号