设为首页 加入收藏

TOP

线性表的基本操作及其作用(四)
2017-11-13 14:55:31 】 浏览:534
Tags:线性 基本操作 及其 作用
nbsp;         break;
            }
            case 3:
            {
                StuData *locate;
                char target[NAME_SIZE];
                while (ans == 'y')
                {
                    printf("Please enter the ID/Name of the student you want to find: ");
                    scanf("%s", target);
                    locate = search(L.elem, L.length, target);
                    if (locate == NULL)
                    {
                        printf("\a\n\t\tSorry! There is no such person!\n");
                    }
                    else
                    {
                        printf("\aFind successfully!\n");
                        print(locate, 1);
                    }
                    printf("Continu?[y] ");
                    fflush(stdin);
                    ans = getchar( );
                    if (ans == '\n')
                    {
                        ans = 'y';
                    }
                    system("cls");
                }
                break;
            }
            case 4:
            {
                printf("All of the stu's info are:\n\n");
                print(L.elem, L.length);
                getchar( );
                getchar( );
                system("cls");
                break;
            }
            case 5:
            {
                FILE *stream;
                if ((stream = fopen("info.dat", "w+")) == NULL)
                {
    &nb
首页 上一页 1 2 3 4 5 6 下一页 尾页 4/6/6
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Java集合框架(Collections Framew.. 下一篇Spring的IOC模拟实现

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目