10 2021 档案
数组中赋值的问题
摘要:定义一个静态数组,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]
阅读全文
想问问大佬为什么黄色编辑的地方加上的话后面全部不执行了
摘要:#include <stdio.h> #include <stdlib.h> typedef struct { char * ch; int length; }Str; //变长分配存储表示 int strassign(Str * str,char * ch){ if(str->ch){ free(
阅读全文
浙公网安备 33010602011771号