⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sortest.c

📁 数据库C语言开发工具包   This archive contains the DB V1.3 file handling C routines. They have been built and
💻 C
字号:
/****************************************************************************/
/*                                                                          */
/*                                                                          */
/*      sortest.c  v1.3  (c) 1990  Ken Harris                               */
/*                                                                          */
/*                                                                          */
/****************************************************************************/
/*                                                                          */
/*      This software is made available on an AS-IS basis. Unrestricted     */
/*      use is granted provided that the copyright notice remains intact.   */
/*      The author makes no warranties expressed or implied.                */
/*                                                                          */
/****************************************************************************/

#include <stdio.h>

main()
{
        char rec[10];
        int i;

        printf("sortest - Test of Callable Record Sort\n\n");
        printf("Sort-init...\n");
        sort_init(6, "aa1.4");

        printf("Release 100 records...\n");
        for (i=99; i>0; i--)
        {       sprintf(rec, "%04d", i);
                printf("%d\n", i);
                sort_release(rec);
        }

        printf("Sort-merge...\n");
        sort_merge();

        printf("Return 100 records...\n");
        while (sort_return(rec))
                printf("%4.4s\n",rec);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -