Skip to content
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

Merged
merged 6 commits into from
Apr 5, 2017
Merged

第二次提交作业 算法2.12 #14

merged 6 commits into from
Apr 5, 2017

Conversation

Lyc-heng
Copy link
Contributor

已结打印了相关的关键算法步骤
修改了相关的一些细节问题

Copy link
Collaborator

@cucyoyo cucyoyo left a 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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
printf("��������\n");
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请去掉一些不必要的打印信息,仅清晰地输出归并过程即可。

Copy link
Collaborator

@cucyoyo cucyoyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请适当整理输出打印信息使其更加清晰整洁。

input=rand();
d=rand()%10;
printf("Ҫת�������:%d\n",input);
printf("Ҫת���Ľ���:%d\n",d);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里应该做一个d是否大于等于10的判断

for(int i=0;i<6;i++){
test[i]=ch[rand()%5];
}
printf("����ķ��Ϊ:\n");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是printf后面的问题么?
我也不知道为啥啊,我也很绝望…

char ch[6]={'(',')','{','}','[',']'};
srand(time(0));
for(int i=0;i<6;i++){
test[i]=ch[rand()%5];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rand() % 6

Copy link
Collaborator

@cucyoyo cucyoyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

按照要求进行了修改,没有问题可以通过。

@c4pr1c3 c4pr1c3 merged commit 76e7429 into CUCCS:master Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants