会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
刚学的小垃圾
博客园
首页
新随笔
联系
管理
订阅
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日
collect2.exe: error: ld returned 1 exit status错误(C入门,案例学生系统排序)
摘要: 今天编写程序遇到的低级错误,把主调函数main错误的写为mian.
阅读全文
posted @ 2021-08-07 16:32 派大星0001
阅读(915)
评论(0)
推荐(0)
公告