09 2019 档案
摘要:1、字符串操作 C中,字符串以一维数组的方式存储。字符串结束标志\0,可用scanf("%s",c);输入,以空格作为输入字符串之间的分隔符。 字符串处理函数:puts(str);可输出转义字符。gets(str);strcat(str1,str2);连接两个字符串。strcpy(str1,str2
阅读全文
摘要:无权图的单源最短路径算法(邻接表存储) (相似于图的遍历的广度优先算法) 1 typedef int Vertex; 2 void UnWeighted(LGraph Graph,Vertex S){ 3 int i; 4 ListNode W; 5 int Dist[MaxVertexNumber
阅读全文