摘要:
数据结构初解之单链表分析篇一、头文件例:#include<stdio.h>#include<stdlib.h>分析:1、stdio.h可以说是最基本的头文件,scanf和printf函数都在里面。2、stdlib.h中包含malloc()函数。二、宏定义例:#defineQUIT-1分析:1、QUIT是自定义的在链表中输入数据的结束符号。2、宏定义和类型定义符的功能很相似。但是宏定义是由预处理完成的,所以它带有预处理指令符#,而类型定义符typedef就没有。但是typedef语句后面要有“;”。3、关于#define更详细的知识可以查找其他资料。三、使用类型定义符ty 阅读全文
posted @ 2013-04-24 23:59
刘一卜
阅读(939)
评论(0)
推荐(1)
摘要:
Problem DescriptionProblems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property of an algorithm whose classification is not known for all possible inputs. Consider the following algor 阅读全文
posted @ 2013-04-24 17:27
刘一卜
阅读(498)
评论(0)
推荐(0)

浙公网安备 33010602011771号