-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
整理目录后的作业 #18
整理目录后的作业 #18
Conversation
2017-1/zjc/10.cpp
Outdated
int main() | ||
{ | ||
int num; | ||
list *h1,*h2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 仅接受C语言版的代码实现,不接受C++代码建议使用后缀名
.c
去调试无误后再行提交- 在这里C中定义结构体指针变量应为
struct list *h1,*h2;
,
- 在这里C中定义结构体指针变量应为
- 注意格式化代码,建议使用vs自动格式化代码
- 请使用随机函数生成链表测试数据,不要人工输入
- malloc分配内存空间后要记得free释放
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2017年春季学期课程作业提交请在2017-1下建立用你的姓名简拼或英文昵称字符串拼接(用英文半角_作为分隔字符)后命名的个人专属子目录下。本仓库除个人专属子目录之外,其他目录、其他文件禁止修改。
上课时多次强调过上述作业上传注意事项,请务必重新组织你的个人作业目录后再提交PR。
input(h2, num); | ||
sort(h1, h2); | ||
output(h1); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 第三次作业基本完成要求
@@ -0,0 +1,107 @@ | |||
#include<stdio.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 源程序文件名不要使用中文名
int i; | ||
ListNode p; | ||
p=L; | ||
L->next = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 低级错误:还没有malloc空间就分配next指针域,程序会崩溃
} | ||
} | ||
} | ||
int main() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 低级错误:
int main
没有返回值?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
第五次作业基本完成要求
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
第六次作业基本完成!
} | ||
else | ||
{ | ||
if (!(*T = (BiTNode*)malloc(sizeof(BiTNode)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 第六次作业和前面的某位同学的作业很雷同啊,希望你已经吸收了代码。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
第六次作业基本完成
No description provided.