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

📄 5.34.txt

📁 数据结构实验 如下: Status Fibonacci(int k, int m, int &f) /* 求k阶斐波那契序列的第m项的值f */
💻 TXT
字号:
void Reverse(GList &L)
/* 递归逆转广义表L */
{
    GLNode *a[50];
    GList p;
    int i;
    
    if(L->tag||L->un.ptr.tp){
        for(i=0,p=L;p;p=p->un.ptr.tp,i++) {
            if(p->un.ptr.hp) Reverse(p->un.ptr.hp);
            a[i]=p->un.ptr.hp;
        }
        for(p=L;p;p=p->un.ptr.tp)
            p->un.ptr.hp=a[--i];
    }
    
    return ;
}

⌨️ 快捷键说明

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