-
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
第二次提交作业 算法2.12 #14
第二次提交作业 算法2.12 #14
Conversation
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.
请给出运行结果截图
|
||
void creatList(LinkList &L,int n); | ||
void Traverse(LinkList &L); | ||
void MergeList(LinkList &La,LinkList &Lb,LinkList &Lc); |
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
去调试无误后再行提交
2017-1/li-yc/List.cpp
Outdated
} | ||
printf("��������\n"); | ||
} | ||
|
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.
请适当整理输出打印信息使其更加清晰整洁。
2017-1/li-yc/实验3-1/main(3-2-1).c
Outdated
input=rand(); | ||
d=rand()%10; | ||
printf("Ҫת�������:%d\n",input); | ||
printf("Ҫת���Ľ���:%d\n",d); |
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.
这里应该做一个d是否大于等于10的判断
2017-1/li-yc/实验3-2/main(3-2-2).c
Outdated
for(int i=0;i<6;i++){ | ||
test[i]=ch[rand()%5]; | ||
} | ||
printf("����ķ��Ϊ:\n"); |
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.
是printf后面的问题么?
我也不知道为啥啊,我也很绝望…
2017-1/li-yc/实验3-2/main(3-2-2).c
Outdated
char ch[6]={'(',')','{','}','[',']'}; | ||
srand(time(0)); | ||
for(int i=0;i<6;i++){ | ||
test[i]=ch[rand()%5]; |
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.
rand() % 6
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.
按照要求进行了修改,没有问题可以通过。
已结打印了相关的关键算法步骤
修改了相关的一些细节问题