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

第七次作业提交 #148

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

HuanWoWeiLan
Copy link
Contributor

No description provided.

G -> arcs[i][j].adj = INFINITY; //��ʼ���ڽӾ�����ÿһ��ֵ��Ϊ����
}
}
Add(G, 0, 1); Add(G, 0, 2); Add(G, 0, 3); Add(G, 0, 6);
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • 时刻不忘自动排(mei)版(yan)!

Copy link
Collaborator

Choose a reason for hiding this comment

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

  • 时刻不忘自动排(mei)版(yan)!

{
int i ,j;
G -> vexnum = 9;//������
G -> arcnum = 12;//����
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • 虽然就题论题你这里这样写是能得到正确答案的,但建议以后在实际应用编程时,尽量把这种参数配置类的工作交给调用者(函数)在调用函数时执行传参操作,代码的封装和可复用就会一点点积累起来了。

@@ -0,0 +1,241 @@
#include <stdio.h>
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • 你的源代码文件名又变成中文了,要避免小疏忽哦!

while(tag != 0)
{
printf("��������Ҫ���ҵ�Ԫ��:");
scanf("%d", &n);
Copy link
Collaborator

@chenfucaijun chenfucaijun Jun 4, 2017

Choose a reason for hiding this comment

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

  • 建议自动输入二叉树的数据,测试输入数据序列:{ 8, 10, 14, 3, 1, 6, 4, 7, 5, 19, 22, 30 }, 待查找关键字依次为: { 13, 8, 5, 20, 6 }
  • 你的源程序名又变成中文了,要时刻注意细节哦!

}
else
{
printf("���ҳɹ������ҵ�����Ϊ%d\n", SearchBST(T,n)->key);
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • 请看作业要求: 在本次PR中,应包含采用纯文本文件的方式保存的查找表使用上述测试用例产生的程序输出结果。

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.

2 participants