03 2012 档案
深入理解include预编译原理
摘要:原创作品,允许转载,转载时请务必以超链接形式标明文章原始出处、作者信息和本声明。否则将追究法律责任。http://ticktick.blog.51cto.com/823160/596179你了解 #include 某个 .h 文件后,编译器做了哪些操作么? 你清楚为什么在 .h文件中定义函数实现的话... 阅读全文
posted @ 2012-03-26 11:49 genslow 阅读(225) 评论(0) 推荐(0)
栈的应用---迷宫
摘要:根据数据结构书本上的为代码实现的View Code #include#include #include #define MAX_STACK_SIZE 100#define EXIT_ROW 9#define EXIT_COL 9int maze[10][10] = { {1,0,1,1... 阅读全文
posted @ 2012-03-26 00:21 genslow 阅读(205) 评论(0) 推荐(0)
栈的一些应用
摘要:1.数制转换2.括号匹配3.表达式求值#include <stdio.h>#include <malloc.h>#include <string.h>#include <stdlib.h>#include <windows.h>#define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2char JJ[]={"0123456789ABCDEF"};typedef struct tagW 阅读全文
posted @ 2012-03-26 00:14 genslow 阅读(312) 评论(0) 推荐(0)
用栈进行进制转换
摘要:根据数据结构的算法。 可以将10进制转换为2-16进制View Code #include<stdio.h>#include<string.h>#include<stdlib.h>char JJ[]={"0123456789ABCDEF"};typedef struct node{ struct node *next; char data;}stack;int isEmpty(stack *s);void CreatStack(stack **s);void Push(stack **s,char x);char Pop(stack ** 阅读全文
posted @ 2012-03-21 14:28 genslow 阅读(371) 评论(0) 推荐(0)
C语言编写的电话簿小程序
摘要:有创建,添加,删除,显示四个功能#include <stdio.h>#include <stdlib.h>#include <conio.h>#include <string.h>int lenth = 1;typedef struct PhoneBook{ char phoneNum[20]; char name[20]; struct PhoneBook *next;}phoneBook;void Creat(phoneBook **);void Add(phoneBook **);void Delete(phoneBook **);void 阅读全文
posted @ 2012-03-19 00:00 genslow 阅读(676) 评论(1) 推荐(1)