摘要:
1.实现八皇后 #include <stdio.h>#define N 8//表示 坐标的平移typedef struct _tag_Pos{ int ios; int jos;} Pos;//棋盘 --边界不用!static char board[N+2][N+2];//坐标的初始化static 阅读全文
摘要:
1.//1 1 2 3 5 8 13 21...#include <stdio.h>int fibonacci(int n){ if( n > 1 ) { return fibonacci(n-1) + fibonacci(n-2); } else if( n == 1 ) { return 1; 阅读全文
摘要:
1.#include <stdio.h>void reverse(char* s){ if( (s != NULL) && (*s != '\0') ) { reverse(s + 1); printf(" %c", *s); }}int main(){ reverse("12345"); prin 阅读全文
摘要:
1.#include <stdio.h>#include <malloc.h>#include "LinkList.h"typedef struct _tag_LinkList{ LinkListNode header; int length;} TLinkList;LinkList* LinkLi 阅读全文
摘要:
1.#include <stdio.h>#include <malloc.h>#include "LinkList.h"typedef struct _tag_LinkList{ LinkListNode header; int length;} TLinkList;LinkList* LinkLi 阅读全文
摘要:
1.#include <stdio.h>#include <malloc.h>#include "LinkList.h"typedef struct _tag_LinkList{ LinkListNode header; int length;} TLinkList;LinkList* LinkLi 阅读全文
摘要:
1.#include <stdio.h>#include <malloc.h>#include "LinkList.h"typedef struct _tag_LinkList{ LinkListNode header; int length;} TLinkList;LinkList* LinkLi 阅读全文
摘要:
1.#include <stdio.h>#include <stdlib.h>#include "SeqStack.h"/* run this program using the console pauser or add your own getch, system("pause") or inp 阅读全文