2021年10月16日
摘要: 定义一个静态数组,int 数组名[MaxSize] //双层循环初始化列表权值 for (int i=0;i<G->vexnum;++i) { for(int j=0;j<G->vexnum;++j){ if(i==j){ G->arcs[i][j]=0; } else{ G->arcs[i][j] 阅读全文
posted @ 2021-10-16 10:54 派大星0001 阅读(49) 评论(0) 推荐(0)
  2021年10月7日
摘要: #include <stdio.h> #include <stdlib.h> typedef struct { char * ch; int length; }Str; //变长分配存储表示 int strassign(Str * str,char * ch){ if(str->ch){ free( 阅读全文
posted @ 2021-10-07 16:36 派大星0001 阅读(37) 评论(0) 推荐(0)
  2021年9月16日
摘要: void sortInList(LinkList * head) { int i;int j=0;int c=ListLength_L(*head); struct ListNode * p; struct ListNode * q; p=(*head)->next; q=p->next; whil 阅读全文
posted @ 2021-09-16 09:52 派大星0001 阅读(41) 评论(0) 推荐(0)
  2021年8月7日
摘要: 今天编写程序遇到的低级错误,把主调函数main错误的写为mian. 阅读全文
posted @ 2021-08-07 16:32 派大星0001 阅读(915) 评论(0) 推荐(0)