摘要: 1.实现八皇后 #include <stdio.h>#define N 8//表示 坐标的平移typedef struct _tag_Pos{ int ios; int jos;} Pos;//棋盘 --边界不用!static char board[N+2][N+2];//坐标的初始化static 阅读全文
posted @ 2016-12-07 20:14 王小波私人定制 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 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; 阅读全文
posted @ 2016-12-07 19:57 王小波私人定制 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1.#include <stdio.h>void reverse(char* s){ if( (s != NULL) && (*s != '\0') ) { reverse(s + 1); printf(" %c", *s); }}int main(){ reverse("12345"); prin 阅读全文
posted @ 2016-12-07 19:27 王小波私人定制 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1.#include <stdio.h>#include <malloc.h>#include "LinkList.h"typedef struct _tag_LinkList{ LinkListNode header; int length;} TLinkList;LinkList* LinkLi 阅读全文
posted @ 2016-12-07 13:43 王小波私人定制 阅读(392) 评论(6) 推荐(1) 编辑
摘要: 1.#include <stdio.h>#include <malloc.h>#include "LinkList.h"typedef struct _tag_LinkList{ LinkListNode header; int length;} TLinkList;LinkList* LinkLi 阅读全文
posted @ 2016-12-07 13:31 王小波私人定制 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 1.#include <stdio.h>#include <malloc.h>#include "LinkList.h"typedef struct _tag_LinkList{ LinkListNode header; int length;} TLinkList;LinkList* LinkLi 阅读全文
posted @ 2016-12-07 12:59 王小波私人定制 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 1.#include <stdio.h>#include <malloc.h>#include "LinkList.h"typedef struct _tag_LinkList{ LinkListNode header; int length;} TLinkList;LinkList* LinkLi 阅读全文
posted @ 2016-12-07 12:37 王小波私人定制 阅读(1038) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-12-07 12:34 王小波私人定制 阅读(1813) 评论(0) 推荐(0) 编辑
DON'T FORGET TO HAVE FUN