2014年5月13日

C语言中printf(),sprintf(),scanf(),sscanf()的用法和区别

摘要: printf语法:#includeintprintf(constchar*format,...);printf()函数根据format(格式)给出的格式打印输出到STDOUT(标准输出)和其它参数中。返回值是输出的字符数量。sprintf语法:#includeintsprintf(char*buff... 阅读全文

posted @ 2014-05-13 16:14 berkeleysong 阅读(232) 评论(0) 推荐(0) 编辑

最短路径—Dijkstra算法和Floyd算法

摘要: http://www.cnblogs.com/biyeymyhjob/archive/2012/07/31/2615833.html1.定义概览Dijkstra(迪杰斯特拉)算法是典型的单源最短路径算法,用于计算一个节点到其他所有节点的最短路径。主要特点是以起始点为中心向外层层扩展,直到扩展到终点为... 阅读全文

posted @ 2014-05-13 10:13 berkeleysong 阅读(125) 评论(0) 推荐(0) 编辑

导航